forked from stencila/stencila
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 896 Bytes
/
pages.yml
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
# Workflow for publishing docs and other artifacts to GitHub Pages
name: Pages
on:
push:
branches: ["main"]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
permissions:
pages: write
id-token: write
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Create archive to upload
run: |
tar --dereference --hard-dereference \
-cvf ${{ runner.temp }}/archive.tar \
./install.sh -C json . -C ../docs .
- name: Upload the archive as a `github-pages` artifact
uses: actions/upload-artifact@v4
with:
name: github-pages
path: ${{ runner.temp }}/archive.tar
retention-days: 1
if-no-files-found: error
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4