Deploy Jekyll site to Pages #153
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Jekyll site to Pages | |
on: | |
workflow_run: | |
workflows: [Build Jekyll site] | |
branches: [main] | |
types: [completed] | |
permissions: | |
pages: write | |
id-token: write | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
# grab the already-built jekyll site, built by the workflow that triggered us | |
- name: Download artifact | |
id: download | |
uses: dawidd6/action-download-artifact@v2 | |
with: | |
workflow: ${{ github.event.workflow_run.workflow_id }} | |
name: github-pages | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: github-pages | |
path: artifact.tar | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |