Skip to content

Refactor release script, add test run and document new attestation #2

Refactor release script, add test run and document new attestation

Refactor release script, add test run and document new attestation #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
workflow_dispatch:
permissions:
contents: write
id-token: write
attestations: write
jobs:
test:
uses: ./.github/workflows/test.yml
build:
needs: test
runs-on: ubuntu-latest
env:
BUILD_PROJECT: src/ucll.build/ucll.build.csproj
ARTIFACTS_PATH: src/ucll.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 ucll.build tool
run: dotnet build ${{ env.BUILD_PROJECT }}
- name: Run ucll.build to create release artifacts
env:
SKIP_GPG_SIGNING: 'true'
run: dotnet run --project ${{ env.BUILD_PROJECT }} --no-build
- 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