-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.22 KB
/
publish.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
41
42
43
44
45
name: publish
on:
workflow_run:
workflows: ["checks"]
branches: [main]
types:
- completed
jobs:
publish:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup pixi
uses: prefix-dev/[email protected]
with:
cache: true
environments: default
- name: Setup latex
uses: teatimeguest/setup-texlive-action@v3
with:
packages: scheme-basic
package-file: tl_packages.txt
repository: https://texlive.info/historic/systems/texlive/2021/tlnet-final/
version: 2021
- name: Cache Output
id: cache-output
uses: actions/cache@v4
with:
path: |
out
.snakemake/metadata
key: ${{ runner.os }}-out
- name: Prepare materials to publish
run: "pixi run prepare-to-publish"
- name: Publish to GH Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: dist
publish_branch: gh-pages
commit_message: "Deploy to GitHub Pages"
force_orphan: true