simplify simulator further by not requiring an interface #48
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 `worlds` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/worlds | |
| token: ${{ secrets.PAT }} | |
| path: worlds | |
| - name: Checkout `types` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/types | |
| token: ${{ secrets.PAT }} | |
| path: types | |
| - name: Checkout `unmanaged` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/unmanaged | |
| token: ${{ secrets.PAT }} | |
| path: unmanaged | |
| - name: Checkout `collections` | |
| uses: actions/checkout@v4.1.2 | |
| with: | |
| repository: simulation-tree/collections | |
| token: ${{ secrets.PAT }} | |
| path: collections | |
| - name: Setup | |
| 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 `Simulation.Core` | |
| run: dotnet build "${{ github.event.repository.name }}/core" -c Release /p:Version=${VERSION} | |
| - name: Build `Simulation.Generator` | |
| run: dotnet build "${{ github.event.repository.name }}/generator" -c Release /p:Version=${VERSION} | |
| - name: Build `Simulation` | |
| run: dotnet build "${{ github.event.repository.name }}/source" -c Release /p:Version=${VERSION} | |
| - name: Build `Simulation.Tests` | |
| run: dotnet build "${{ github.event.repository.name }}/tests" -c Release /p:Version=${VERSION} | |
| - name: Test | |
| run: dotnet test "${{ github.event.repository.name }}/tests" -c Release --logger "trx" | |
| - name: Pack `Simulation.Core` | |
| run: dotnet pack "${{ github.event.repository.name }}/core" -c Release /p:Version=${VERSION} --no-build --output . | |
| - name: Pack `Simulation.Generator` | |
| run: dotnet pack "${{ github.event.repository.name }}/generator" -c Release /p:Version=${VERSION} --no-build --output . | |
| - name: Pack `Simulation` | |
| run: dotnet pack "${{ github.event.repository.name }}/source" -c Release /p:Version=${VERSION} --no-build --output . | |
| - name: Add NuGet 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: Publish `Simulation.Core` | |
| run: dotnet nuget push Simulation.Core.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN} | |
| env: | |
| NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | |
| - name: Publish `Simulation.Generator` | |
| run: dotnet nuget push Simulation.Generator.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN} | |
| env: | |
| NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} | |
| - name: Publish `Simulation` | |
| run: dotnet nuget push Simulation.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN} | |
| env: | |
| NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }} |