Update build_pdf.yml #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-pdf | |
on: | |
push: | |
branches: | |
- hk-songbook | |
- hk-2024 | |
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: 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 |