Update buildAndPublish.yml to include 'forRelease' input #9
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: Release | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
DOTNET_VERSION: '8.0.x' | |
permissions: | |
checks: write | |
contents: read | |
jobs: | |
call_buildAndPublish: | |
uses: ./.github/workflows/buildAndPublish.yml | |
with: | |
feedUrl: https://api.nuget.org/v3/index.json | |
forRelease: true | |
secrets: | |
feedAPIKey: ${{ secrets.NUGET_API_KEY }} | |
generate_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build documenation site | |
uses: nunit/[email protected] | |
with: | |
args: docs/docfx.json | |
- name: Upload documentation archive | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: artifacts/_site | |
publish_docs: | |
needs: [call_buildAndPublish, generate_docs] | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Publish documentation | |
uses: actions/deploy-pages@v4 | |
id: deployment |