Skip to content

Commit

Permalink
update workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Mar 4, 2024
1 parent 1cb567e commit 1a8ac6a
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: GitHub Pages
on: workflow_dispatch

on:
workflow_dispatch:

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

concurrency:
group: "pages"
group: pages
cancel-in-progress: false

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -39,20 +43,22 @@ jobs:
python -m docutils --writer=html --output="${RST%.rst}.html" -- "$RST"
done < <(find . -type f -name "*.rst")
- name: Jekyll
uses: actions/jekyll-build-pages@v1
- uses: actions/jekyll-build-pages@v1
with:
source: ./docs/
destination: ./_site/

- uses: actions/upload-pages-artifact@v3

deploy:

runs-on: ubuntu-latest

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

steps:
- id: deployment
uses: actions/deploy-pages@v4
- uses: actions/deploy-pages@v4
id: deployment

0 comments on commit 1a8ac6a

Please sign in to comment.