Skip to content

Commit

Permalink
Use new GitHub Pages Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbanes committed Oct 28, 2023
1 parent 86a6fd0 commit 5126445
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ on:
tags:
- v*

permissions:
contents: read
pages: write
id-token: write

jobs:
deploy_docs:
runs-on: macos-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
Expand All @@ -26,6 +34,9 @@ jobs:
with:
python-version: '3.x'

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
Expand All @@ -41,8 +52,11 @@ jobs:

# TODO: Copy over Dokka API build to ./site

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
path: 'site'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 5126445

Please sign in to comment.