mirror of
https://github.com/mickael-menu/zk
synced 2024-11-11 07:10:25 +00:00
45b68121ce
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tillman Jex <tjex@tjex.net>
44 lines
982 B
YAML
44 lines
982 B
YAML
name: Deploy to GitHub Pages
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- "published"
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
- name: Fix anchor tag in README
|
|
run: ex -s -c '%s/docs\/getting-started\.md/docs\/getting-started/|x' README.md
|
|
- name: Build with Jekyll
|
|
uses: actions/jekyll-build-pages@v1
|
|
with:
|
|
source: ./
|
|
destination: ./_site
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|