und - Stop distributing LIVE! for now #35
Workflow file for this run
This file contains 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: Prepare release | |
on: | |
push: | |
tags: | |
- 'v0.1.*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
permissions: | |
id-token: write | |
contents: write | |
attestations: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
ref: ${{ github.ref }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Setup DocFX | |
run: dotnet tool install --global docfx | |
- name: Release Asset Preparation | |
run: | | |
cd tools ; cmd.exe /c "build.cmd" ; cd .. | |
cd tools ; cmd.exe /c "pack.cmd" ; cd .. | |
cd tools ; cmd.exe /c "docgen.cmd" ; cd .. | |
cd tools ; cmd.exe /c "docgen-pack.cmd" ; cd .. | |
- name: Release Preparation | |
id: release-asset | |
shell: bash | |
run: | | |
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT" | |
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT" | |
cat CHANGES >> "$GITHUB_OUTPUT" | |
powershell 'Get-FileHash -Algorithm sha256 tools/*.zip | % {"- " + $_.Hash + " " + (Resolve-Path -Path $_.Path -Relative)}' >> "$GITHUB_OUTPUT" | |
powershell 'Get-FileHash -Algorithm sha256 tools/*-changes.chg | % {"- " + $_.Hash + " " + (Resolve-Path -Path $_.Path -Relative)}' >> "$GITHUB_OUTPUT" | |
echo 'EOF' >> "$GITHUB_OUTPUT" | |
- name: Binary Attestation (binaries) | |
uses: actions/attest-build-provenance@v1 | |
with: | |
subject-path: 'tools/*.zip' | |
- name: Release Making | |
uses: softprops/action-gh-release@v2 | |
with: | |
body: ${{ steps.release-asset.outputs.BODY }} | |
name: ${{ steps.release-asset.outputs.SUBJECT }} | |
files: | | |
tools/*.zip | |
tools/*-changes.chg | |
*.iso | |
- name: Notify build | |
uses: tsickert/[email protected] | |
with: | |
webhook-url: ${{ secrets.WEBHOOK_URL }} | |
content: "<:nitrocidks:1268905174563557452> ${{ steps.release-asset.outputs.SUBJECT }} <:nitrocidks:1268905174563557452>\n\n${{ steps.release-asset.outputs.BODY }}" | |
- name: Package Publication | |
run: | | |
chmod +x tools/*.sh | |
cd tools ; cmd.exe /C "push.cmd ${{ secrets.NUGET_APIKEY }}" ; cd .. |