Release #11
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: Release | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
jobs: | |
Release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set git identity | |
run: | | |
git config user.name 'github-actions[bot]' | |
git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Build | |
run: ./build.sh -t Release | |
shell: bash | |
env: | |
NUGET_KEY: ${{ secrets.NUGET_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Upload the static files | |
- name: Upload documentation | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./output | |
# GitHub Actions recommends deploying in a separate job. | |
DeployDocs: | |
runs-on: ubuntu-latest | |
needs: Release | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |