Skip to content

Deploy Jekyll site to Pages #34

Deploy Jekyll site to Pages

Deploy Jekyll site to Pages #34

Workflow file for this run

name: Deploy Jekyll site to Pages
on:
workflow_run:
workflows: ["Update README from JSON"]
branches: [main]
types: [completed]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
if: |
github.event.workflow_run.head_branch == 'main' &&
github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout (main branch)
uses: actions/checkout@v4
with:
ref: main
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4