-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1010 Bytes
/
github-pages.yml
File metadata and controls
38 lines (34 loc) · 1010 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
name: GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: github-pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b
- name: Package Pages artifact
shell: bash
run: |
set -euo pipefail
tar --dereference --hard-dereference -cvf github-pages.tar --directory site .
gzip -f github-pages.tar
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: github-pages
path: github-pages.tar.gz
retention-days: 1
- id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e