Skip to content

Commit

Permalink
Added github actions to build PDFs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashoechst committed Feb 2, 2020
1 parent 3e43a3a commit f84a4dd
Showing 1 changed file with 149 additions and 0 deletions.
149 changes: 149 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
name: "Build Release"

on:
push:
tags:
- "*"

jobs:
build:
runs-on: ubuntu-18.04
name: "Build PDFs for all Books"
steps:
- name: "Checkout repository"
uses: actions/checkout@v1
with:
submodules: recursive
- name: "Install abcm2ps"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y make gcc libc6-dev
wget https://github.com/leesavide/abcm2ps/archive/v8.14.1.tar.gz -O abcm2ps-8.14.1.tar.gz
tar -xf abcm2ps-8.14.1.tar.gz
cd abcm2ps-8.14.1/
./configure
sudo make install
- name: "Install LaTeX and dependencies"
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y texlive-latex-base texlive-latex-extra texlive-fonts-recommended texlive-extra-utils texlive-lang-german xzdec ghostscript make
- name: "Install songidx"
run: |
tar xf Tools/songs-2.18.tar.gz
pushd songs-2.18/
./configure
cd src/songidx
make
popd
cp songs-2.18/src/songidx/songidx Tools/songidx
- run: make Ausgaben/PfadiralalaIV.pdf
- run: make Ausgaben/PfadiralalaIV-pics.pdf
- run: make Ausgaben/PfadiralalaIV-print.pdf
- run: make Noten
- run: make Ausgaben/PfadiralalaIVplus.pdf
- run: make Ausgaben/PfadiralalaIVplus-pics.pdf
- run: make Ausgaben/PfadiralalaIVplus-print.pdf
- run: make Ausgaben/Pfadiralala2020.pdf
- run: make Ausgaben/Pfadiralala2020-pics.pdf
- run: make Ausgaben/Pfadiralala2020-print.pdf

- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: true

- name: Upload PfadiralalaIV.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV.pdf
asset_name: PfadiralalaIV.pdf
asset_content_type: application/pdf

- name: Upload PfadiralalaIV-pics.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV-pics.pdf
asset_name: PfadiralalaIV-pics.pdf
asset_content_type: application/pdf

- name: Upload PfadiralalaIV-print.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIV-print.pdf
asset_name: PfadiralalaIV-print.pdf
asset_content_type: application/pdf

- name: Upload PfadiralalaIVplus.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus.pdf
asset_name: PfadiralalaIVplus.pdf
asset_content_type: application/pdf

- name: Upload PfadiralalaIVplus-pics.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus-pics.pdf
asset_name: PfadiralalaIVplus-pics.pdf
asset_content_type: application/pdf

- name: Upload PfadiralalaIVplus-print.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/PfadiralalaIVplus-print.pdf
asset_name: PfadiralalaIVplus-print.pdf
asset_content_type: application/pdf

- name: Upload Pfadiralala2020.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2020.pdf
asset_name: Pfadiralala2020.pdf
asset_content_type: application/pdf

- name: Upload Pfadiralala2020-pics.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2020-pics.pdf
asset_name: Pfadiralala2020-pics.pdf
asset_content_type: application/pdf

- name: Upload Pfadiralala2020-print.pdf
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./Ausgaben/Pfadiralala2020-print.pdf
asset_name: Pfadiralala2020-print.pdf
asset_content_type: application/pdf

0 comments on commit f84a4dd

Please sign in to comment.