-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (45 loc) · 1.18 KB
/
build_pdf.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
name: build-pdf
on:
push:
branches:
- hk-songbook
schedule:
- cron: '0 0 1 * *'
jobs:
build-pdf:
runs-on: ubuntu-latest
container: matiusz/songbook:latest
defaults:
run:
working-directory: ./app
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
repository: matiusz/songbook
token: ${{ secrets.GITHUB_TOKEN }}
path: ./app
- name: Generate HK PDF
run: python3 -m songbook.apps.create_pdf
env:
SONGBOOK_DATA_DIR: hk-songbook
SONGBOOK_TITLE: hk-songbook
- name: Generate 111 ADH PDF
run: python3 -m songbook.apps.create_pdf
env:
SONGBOOK_DATA_DIR: spiewnik111adh
SONGBOOK_TITLE: spiewnik111adh
- name: ls
run: ls
- name: Archive HK PDF
uses: actions/upload-artifact@v4
with:
name: hk-songbook
path: app/hk-songbook.pdf
if-no-files-found: error
- name: Archive 111 ADH PDF
uses: actions/upload-artifact@v4
with:
name: spiewnik111adh
path: app/spiewnik111adh.pdf
if-no-files-found: error