Skip to content

Commit a5225ad

Browse files
committed
Update package generation reference data
1 parent aef0dda commit a5225ad

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

  • tests/data/test_package_generation/.github/workflows

tests/data/test_package_generation/.github/workflows/docs.yml

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
pull_request:
88

99
jobs:
10-
docs:
10+
build:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout source
@@ -28,19 +28,26 @@ jobs:
2828

2929
- name: Install tox
3030
run: python -m pip install tox
31+
3132
- name: Build HTML documentation with tox
3233
run: tox -e docs
3334

34-
# Automatically deploy documentation to a GitHub Pages website on pushing to main.
35-
# Requires configuring the repository to deploy GitHub pages from a branch
36-
# gh-pages (https://tinyurl.com/gh-pages-from-branch), which will be created the
37-
# first time this workflow step is run.
38-
- name: Publish documentation on GitHub pages
39-
if: success() && github.event_name != 'pull_request'
40-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4
35+
- name: Upload built docs as artifact
36+
id: deployment
37+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
4138
with:
42-
github_token: ${{ secrets.GITHUB_TOKEN }}
43-
publish_dir: site
44-
publish_branch: gh-pages
45-
user_name: "github-actions[bot]"
46-
user_email: "github-actions[bot]@users.noreply.github.com"
39+
path: site
40+
41+
deploy:
42+
environment:
43+
name: github-pages
44+
url: ${{ steps.deployment.outputs.page_url }}
45+
permissions:
46+
pages: write
47+
id-token: write
48+
runs-on: ubuntu-latest
49+
needs: build
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

0 commit comments

Comments
 (0)