Skip to content

fin - Finalized changelogs #9

fin - Finalized changelogs

fin - Finalized changelogs #9

Workflow file for this run

name: Prepare release
on:
push:
tags:
- '**'
jobs:
build:
runs-on: ubuntu-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
id: release-asset
run: |
chmod +x tools/*.sh
make
make doc
cd tools ; ./docgen-pack.sh ; cd ..
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT"
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT"
cat CHANGES >> "$GITHUB_OUTPUT"
sha256sum tools/*.zip | sed -e 's/^/- /g' >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
- name: Binary Attestation
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
- name: Notify build
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: "<:visualcard:1268905335763107872> ${{ steps.release-asset.outputs.SUBJECT }} <:visualcard:1268905335763107872>\n\n${{ steps.release-asset.outputs.BODY }}"
- name: Package Publication
run: |
chmod +x tools/*.sh
cd tools ; NUGET_APIKEY=${{ secrets.NUGET_APIKEY }} ./push.sh ; cd ..