Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 502dd34

Browse files
committed
Use package.json instead of manifest; use nerdbank versioning by default
1 parent 87d2740 commit 502dd34

File tree

4 files changed

+47
-21
lines changed

4 files changed

+47
-21
lines changed

.github/workflows/distribute.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,26 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
# Create a zip from what's in this repo
14+
- name: Nerdbank.GitVersioning
15+
uses: dotnet/nbgv@latest
16+
setAllVars: true
17+
stamp: true
18+
19+
# Create a zip from what's in this repo
1520
- name: Archive Release
1621
uses: thedoctor0/[email protected]
1722
with:
1823
type: 'zip'
19-
directory: 'dist/'
20-
path: '../'
21-
filename: 'stable.zip'
22-
exclusions: '*.git* /*node_modules/* .editorconfig dist'
24+
filename: 'dist/stable.zip'
25+
exclusions: '*.git* /*node_modules/* .editorconfig dist version.json'
2326
command: "mkdir -p dist"
2427

2528
# List all the files that have been created
2629
- name: 'List files'
2730
run: |
2831
find dist/ -maxdepth 2 -type f
2932
30-
- uses: BetaHuhn/do-spaces-action@v2
33+
- uses: BetaHuhn/do-spaces-action@latest
3134
with:
3235
access_key: ${{ secrets.SPACE_ACCESS_KEY}}
3336
secret_key: ${{ secrets.SPACE_SECRET_KEY }}

manifest.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "system_configs",
3+
"version": "1.0.0",
4+
"config": {
5+
"aircraft": {
6+
"path": "aircraft"
7+
},
8+
"rules": {
9+
"path": "rules"
10+
},
11+
"scripts": {
12+
"path": "sounds"
13+
},
14+
"sounds": {
15+
"path": "sounds"
16+
}
17+
},
18+
"private": true
19+
}

version.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json",
3+
"version": "2.0",
4+
"cloudBuild": {
5+
"buildNumber": {
6+
"enabled": true
7+
},
8+
"setVersionVariables": true,
9+
"setAllVariables": true
10+
},
11+
"pathFilters": [
12+
":!/.github",
13+
":!/azure-pipelines.yml"
14+
],
15+
"publicReleaseRefSpec": [
16+
"^refs/heads/main",
17+
"^refs/heads/v\\d+(?:\\.\\d+)?$"
18+
]
19+
}

0 commit comments

Comments
 (0)