diff --git a/.github/workflows/distribute.yml b/.github/workflows/distribute.yml index 2279096..f1b8089 100644 --- a/.github/workflows/distribute.yml +++ b/.github/workflows/distribute.yml @@ -11,15 +11,18 @@ jobs: steps: - uses: actions/checkout@v4 - # Create a zip from what's in this repo + - name: Nerdbank.GitVersioning + uses: dotnet/nbgv@latest + setAllVars: true + stamp: true + + # Create a zip from what's in this repo - name: Archive Release uses: thedoctor0/zip-release@0.7.5 with: type: 'zip' - directory: 'dist/' - path: '../' - filename: 'stable.zip' - exclusions: '*.git* /*node_modules/* .editorconfig dist' + filename: 'dist/stable.zip' + exclusions: '*.git* /*node_modules/* .editorconfig dist version.json' command: "mkdir -p dist" # List all the files that have been created @@ -27,7 +30,7 @@ jobs: run: | find dist/ -maxdepth 2 -type f - - uses: BetaHuhn/do-spaces-action@v2 + - uses: BetaHuhn/do-spaces-action@latest with: access_key: ${{ secrets.SPACE_ACCESS_KEY}} secret_key: ${{ secrets.SPACE_SECRET_KEY }} diff --git a/manifest.json b/manifest.json deleted file mode 100644 index 0791657..0000000 --- a/manifest.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "name": "default", - "aircraft": { - "path": "aircraft" - }, - "rules": { - "path": "rules" - }, - "scripts": { - "path": "sounds" - }, - "sounds": { - "path": "sounds" - } - } diff --git a/package.json b/package.json new file mode 100644 index 0000000..7a94e83 --- /dev/null +++ b/package.json @@ -0,0 +1,19 @@ +{ + "name": "system_configs", + "version": "1.0.0", + "config": { + "aircraft": { + "path": "aircraft" + }, + "rules": { + "path": "rules" + }, + "scripts": { + "path": "sounds" + }, + "sounds": { + "path": "sounds" + } + }, + "private": true +} diff --git a/version.json b/version.json new file mode 100644 index 0000000..6c8c801 --- /dev/null +++ b/version.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", + "version": "2.0", + "cloudBuild": { + "buildNumber": { + "enabled": true + }, + "setVersionVariables": true, + "setAllVariables": true + }, + "pathFilters": [ + ":!/.github", + ":!/azure-pipelines.yml" + ], + "publicReleaseRefSpec": [ + "^refs/heads/main", + "^refs/heads/v\\d+(?:\\.\\d+)?$" + ] +}