Skip to content

feat: Add a non-chords first songbook leadsheet #9

feat: Add a non-chords first songbook leadsheet

feat: Add a non-chords first songbook leadsheet #9

name: 'LaTeX Songbook (no chords))'
on:
push:
branches:
- leadsheets-without-chords
# paths:
# - 'verified/trupe_lauda_si_inchinare/**'
workflow_dispatch:
jobs:
LaTeXSongbookRelease:
runs-on: ubuntu-24.04
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Install Fonts
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends ttf-mscorefonts-installer
sudo fc-cache -fv # Refresh the font cache
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Run Build songbook TEX
run: |
npm i && npm run songbook:convert
env:
CI: true
- name: Compile BES Songbook LaTeX doc
uses: xu-cheng/latex-action@v3
with:
root_file: bes-songbook.tex
working_directory: LaTeX/songbook/
latexmk_shell_escape: true
latexmk_use_xelatex: true
- name: Generate Release Tag
id: tag
run: echo "{name}={release_tag::BES_Songbook_$(date +"%Y-%B-%d-%H%M")}" >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v1
with:
files: 'LaTeX/songbook/bes-songbook.pdf'
tag_name: ${{ steps.tag.outputs.release_tag }}
fail_on_unmatched_files: true
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}