Skip to content

Commit

Permalink
Try different approach
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 20, 2023
1 parent de1242d commit 13e9cf7
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,13 @@ on:
push:
workflow_dispatch:

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

concurrency:
group: pages
cancel-in-progress: true

jobs:
build-and-publish-doc:
build-doc:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -52,6 +44,24 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: doc_output/html
- name: Deploy to Github pages
id: deployment
uses: actions/deploy-pages@v4

publish-doc:
needs: build-doc
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: gh-pages
- uses: actions/download-artifact@v4
with:
name: github-pages
path: master
- name: Check artifact download
run: ls master



# - name: Deploy to Github pages
# id: deployment
# uses: actions/deploy-pages@v4

0 comments on commit 13e9cf7

Please sign in to comment.