Skip to content

deploy-pages

deploy-pages #164

Workflow file for this run

name: deploy-pages
on:
push:
branches:
- master
paths:
- 'docs/**'
workflow_run:
workflows: ["deploy-release"]
types:
- completed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Prepare Author and Changelog Include
run: |
cp NEWS.md docs/_includes/news.md
awk '
NF {
name = gensub(/\s+[^ ]+@[^ ]+\s+/, " ", "g", $0) # Strip email
print "- " name
}
' AUTHORS.txt > docs/_includes/authors.md
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./_site
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}