build #1
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: build | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-and-sign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Semantic version | |
| uses: './.github/actions/dotnet/version' | |
| id: version | |
| - name: Restore and build | |
| uses: './.github/actions/dotnet/build' | |
| with: | |
| retention-days: 5 | |
| - name: Execute unit test and publish reports | |
| uses: './.github/actions/dotnet/test' | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Pack and sign NuGet packages | |
| uses: './.github/actions/dotnet/pack' | |
| if: ${{ inputs.pack }} | |
| with: | |
| pre-release-version: ${{steps.version.outputs.pre-release-version}} | |
| release-version: ${{steps.version.outputs.release-version}} |