Bump actions/upload-artifact from 4.4.0 to 4.4.3 #2040
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: github-pages | |
on: | |
push: | |
branches: [ main, release/* ] | |
pull_request: | |
branches: [ main, release/* ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
- name: Lint Markdown files | |
uses: DavidAnson/markdownlint-cli2-action@db43aef879112c3119a410d69f66701e0d530809 # v17.0.0 | |
with: | |
config: '.markdownlint.json' | |
globs: | | |
**/*.md | |
!**/BenchmarkDotNet.Artifacts/**/*.md | |
- name: Spellcheck | |
uses: rojopolis/spellcheck-github-actions@b83ca7c1b5c285e4f2b43e209a455c74872ec341 # v0.42.0 | |
with: | |
config_path: .github/spellcheck.yml | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1 | |
- name: Generate documentation | |
run: | | |
dotnet tool restore | |
dotnet build --configuration Release /p:SKIP_POLLY_ANALYZERS=true | |
dotnet docfx docs/docfx.json | |
- name: Publish documentation | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
with: | |
name: docs | |
path: docs/_site | |
if-no-files-found: error | |
publish-docs: | |
needs: [ build-docs ] | |
runs-on: ubuntu-latest | |
if: | | |
github.event.repository.fork == false && | |
github.ref_name == github.event.repository.default_branch | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: false | |
permissions: | |
contents: write | |
pages: write | |
steps: | |
- name: Download documentation | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | |
with: | |
name: docs | |
path: docs | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs | |
cname: www.pollydocs.org |