File tree 1 file changed +19
-5
lines changed
1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -15,44 +15,58 @@ concurrency:
15
15
jobs :
16
16
17
17
' build-job ' :
18
+
18
19
runs-on : ' ubuntu-22.04'
20
+
19
21
steps :
22
+
20
23
- name : " Install apt packages"
21
24
run : |
22
25
sudo apt-get --assume-yes --quiet update
23
26
sudo apt-get --assume-yes --quiet install --no-install-recommends graphviz latexmk tex-gyre texlive-fonts-recommended texlive-latex-extra texlive-latex-recommended
27
+
24
28
- name : " Setup Python"
25
29
uses : ' actions/setup-python@v4'
26
30
with :
27
31
python-version : ' 3.10'
32
+
28
33
- name : " Install tox"
29
34
run : ' python -m pip install tox'
35
+
30
36
- name : " Checkout"
31
37
uses : ' actions/checkout@v3'
32
- with :
33
- fetch-depth : 0
38
+
34
39
- name : " Build"
35
40
run : ' tox run -e build'
36
- - name : " Upload artifact for Pages"
41
+
42
+ - name : " Upload artifact for GitHub Pages"
37
43
if : " github.ref_name == 'main'"
38
44
uses : ' actions/upload-pages-artifact@v1'
39
45
with :
40
46
path : ' build/html'
41
47
42
48
' deploy-job ' :
49
+
43
50
if : " github.ref_name == 'main'"
51
+
44
52
needs : ['build-job']
45
- runs-on : ' ubuntu-22.04 '
53
+
46
54
permissions :
47
55
contents : ' read'
48
56
pages : ' write'
49
57
id-token : ' write'
58
+
50
59
environment :
51
60
name : ' github-pages'
52
61
url : ' ${{ steps.deployment.outputs.page_url }}'
62
+
63
+ runs-on : ' ubuntu-22.04'
64
+
53
65
steps :
54
- - name : " Setup Pages"
66
+
67
+ - name : " Setup GitHub Pages"
55
68
uses : ' actions/configure-pages@v3'
69
+
56
70
- name : " Deploy to GitHub Pages"
57
71
id : ' deployment'
58
72
uses : ' actions/deploy-pages@v1'
You can’t perform that action at this time.
0 commit comments