This repository has been archived by the owner on Nov 24, 2024. It is now read-only.
upd - Updated Discord emoji for release #1
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: | |
- '**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: 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" | |
echo 'EOF' >> "$GITHUB_OUTPUT" | |
- name: Release Making | |
uses: softprops/action-gh-release@v2 | |
with: | |
body_path: CHANGES | |
name: ${{ steps.release-asset.outputs.SUBJECT }} | |
files: | | |
tools/*.zip | |
- name: Notify build | |
uses: tsickert/discord-webhook@v6.0.0 | |
with: | |
webhook-url: ${{ secrets.WEBHOOK_URL }} | |
content: "<:clitester:1287805017490718860> ${{ steps.release-asset.outputs.SUBJECT }} <:clitester:1287805017490718860>\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 .. |