-
-
Notifications
You must be signed in to change notification settings - Fork 132
40 lines (36 loc) · 1023 Bytes
/
jekyll-deploy.yml
File metadata and controls
40 lines (36 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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:
if: github.repository == 'Libera-Chat/libera-chat.github.io'
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@v8
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
name: github-pages
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: artifact.tar
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4