forked from oToToT/kiseki
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.17 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/docs.pdf'
- 'pdf/codebook.pdf'
- 'README.md'
- '.editorconfig'
env:
SOURCE_DATE_EPOCH: 0 # reproducible latex build
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
all:
name: build and commit
runs-on: ubuntu-latest
container: ghcr.io/omeletwithoutegg/ckiseki/builder:master
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build codebook
working-directory: pdf
run: make clean && make codebook.pdf
- name: Build docs
working-directory: docs
run: make clean && make docs.pdf
- name: Trust Directory
run: |
git config --global --add safe.directory $GITHUB_WORKSPACE
# https://github.com/actions/checkout/issues/760
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: auto build - ${{ github.sha }}