-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (51 loc) · 1.58 KB
/
Copy pathbuild_document.yml
File metadata and controls
62 lines (51 loc) · 1.58 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
50
51
52
53
54
55
56
57
58
59
60
61
62
---
name: build_document
'on':
workflow_dispatch:
push:
paths-ignore:
- 'generated/**'
permissions:
contents: read
env:
python_version: 3.9
jobs:
build_document:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{secrets.PUSH_TOKEN}}
- name: Install dependencies
run: |
sudo apt-get install texlive-latex-extra
sudo apt-get install cm-super
sudo apt-get install texlive-lang-polish
sudo apt-get install texlive-fonts-extra
sudo apt-get install dvipng
- name: Set up Python ${{env.python_version}}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{env.python_version}}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install matplotlib
- name: run build script
working-directory: ${{github.workspace}}
shell: bash
run: ./publish.sh
- name: status at ${{github.ref}}
run: git status
- name: commit and push result
working-directory: ${{github.workspace}}
shell: bash
run: |
git config --global user.name 'build_document_action'
git config --global user.email 'vil02@users.noreply.github.com'
git add "$(./get_output_folder.sh)"
git commit -m "Automated document generation"
git push
...