-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 955 Bytes
/
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
---
name: build_document
'on':
workflow_dispatch:
push:
paths-ignore:
- 'generated/**'
jobs:
build_document:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{secrets.PUSH_TOKEN}}
- name: Install dependencies
run: |
sudo apt-get install texlive-latex-extra
- 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
...