-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (40 loc) · 1.04 KB
/
Copy pathwebsite.yml
File metadata and controls
49 lines (40 loc) · 1.04 KB
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
46
47
48
49
name: Deploy Website
on:
push:
branches:
- main
paths:
- 'website/**'
- 'manual/**'
- 'dna2graph/assets/defaults.json'
- '.github/workflows/website.yml'
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Compile LaTeX PDF
uses: xu-cheng/latex-action@v3
with:
working_directory: manual
root_file: manual.tex
- name: Prepare website assets
run: |
mkdir -p website/assets/docs
cp manual/manual.pdf website/assets/docs/
cp dna2graph/assets/defaults.json website/assets/docs/
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: website
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4