update bank names #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| path: ${{ github.event.repository.name }} | |
| - name: Checkout `unmanaged` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/unmanaged | |
| token: ${{ secrets.PAT }} | |
| path: unmanaged | |
| - name: Checkout `collections` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/collections | |
| token: ${{ secrets.PAT }} | |
| path: collections | |
| - name: Checkout `types` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/types | |
| token: ${{ secrets.PAT }} | |
| path: types | |
| - name: Checkout `worlds` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/worlds | |
| token: ${{ secrets.PAT }} | |
| path: worlds | |
| - name: Checkout `data` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/data | |
| token: ${{ secrets.PAT }} | |
| path: data | |
| - name: Checkout `data-systems` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/data-systems | |
| token: ${{ secrets.PAT }} | |
| path: data-systems | |
| - name: Checkout `shaders` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/shaders | |
| token: ${{ secrets.PAT }} | |
| path: shaders | |
| - name: Checkout `simulation` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: game-simulations/simulation | |
| token: ${{ secrets.PAT }} | |
| path: simulation | |
| - name: Setup dotnet | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '9.0.x' | |
| - name: Set VERSION variable from tag | |
| run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV | |
| - name: Build Source | |
| run: dotnet build "${{ github.event.repository.name }}/source" -c Release /p:Version=${VERSION} | |
| - name: Test | |
| run: dotnet test "${{ github.event.repository.name }}/tests" -c Release | |
| - name: Pack Source | |
| run: dotnet pack "${{ github.event.repository.name }}/source" -c Release /p:Version=${VERSION} --no-build --output . | |
| - name: Add source | |
| run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text | |
| - name: Push Source | |
| run: dotnet nuget push Shaders.Systems.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN} | |
| env: | |
| NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |