Print dotnet info in pages flow #460
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: Publish GitHub Pages | |
on: | |
push: | |
branches: [main] | |
paths: | |
- .github/workflows/gh-pages.yml | |
- docfx.json | |
- docs/** | |
- GW2SDK/**.cs | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/sliekens/gw2sdk/devcontainer:latest | |
options: --user 1001 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # (no limit) | |
filter: blob:none | |
fetch-tags: false | |
show-progress: false | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Build documentation site | |
run: | | |
dotnet --info | |
dotnet tool restore | |
dotnet docfx | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: artifacts | |
publish-docs: | |
needs: build-docs | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
steps: | |
- name: Deploy artifact | |
id: deployment | |
uses: actions/deploy-pages@v2 |