Skip to content

Commit

Permalink
Fix deploying to GitHub Pages (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
arneso-ssb authored Aug 29, 2023
1 parent 3343955 commit 2afe682
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
run: nox --force-color --session=docs
- name: Check links
run: nox --force-color --session=linkcheck
- uses: actions/upload-artifact@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: docs
path: docs/_build
path: "docs/_build"

deploy:
environment:
Expand Down
7 changes: 6 additions & 1 deletion {{cookiecutter.project_name}}/.github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# 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:
Expand Down Expand Up @@ -44,7 +50,6 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
name: docs
path: "docs/_build"

deploy:
Expand Down

0 comments on commit 2afe682

Please sign in to comment.