feat: Add a non-chords first songbook leadsheet #6
Workflow file for this run
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: 'LaTeX Songbook (no chords))' | |
on: | |
push: | |
branches: | |
- leadsheets-without-chords | |
# paths: | |
# - 'verified/trupe_lauda_si_inchinare/**' | |
workflow_dispatch: | |
jobs: | |
LaTeXSongbookRelease: | |
runs-on: ubuntu-latest | |
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_Conduct_$(date +"%Y.%m.%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 }} |