Skip to content

Commit

Permalink
Use package.json instead of manifest; use nerdbank versioning by default
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeelio committed Aug 6, 2024
1 parent 87d2740 commit 502dd34
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 21 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/distribute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,26 @@ 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/[email protected]
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
- name: 'List files'
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 }}
Expand Down
15 changes: 0 additions & 15 deletions manifest.json

This file was deleted.

19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -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
}
19 changes: 19 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -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+)?$"
]
}

0 comments on commit 502dd34

Please sign in to comment.