Tests and more (#7) #3
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| id-token: write | |
| attestations: write | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| BUILD_PROJECT: src/vv.build/vv.build.csproj | |
| ARTIFACTS_PATH: src/vv.build/bin/artifacts/* | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Build vv.build and create release artifacts | |
| run: dotnet run --project ${{ env.BUILD_PROJECT }} | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release-artifacts | |
| path: ${{ env.ARTIFACTS_PATH }} | |
| if-no-files-found: error | |
| - name: Attest build provenance | |
| uses: actions/attest-build-provenance@v3 | |
| with: | |
| subject-path: ${{ env.ARTIFACTS_PATH }} | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| files: ${{ env.ARTIFACTS_PATH }} | |
| generate_release_notes: true | |
| prerelease: true | |
| draft: true | |
| make_latest: true |