-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.46 KB
/
build_document.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: build_document
'on':
workflow_dispatch:
push:
paths-ignore:
- 'generated/**'
env:
python_version: 3.8
jobs:
build_document:
runs-on: ubuntu-24.04
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v4
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@v5
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
...