generated from codello-scores/lilypond-project
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (39 loc) · 1.18 KB
/
build.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
name: Build
on:
push:
pull_request:
branches: [ main ]
release:
types: [ published ]
jobs:
build:
name: Build Scores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup LilyPond
uses: codello/setup-lilypond@main
with:
lilypond-version: "2.24"
ol-fonts: beethoven
- name: Install Yorkten Font
run: aws s3 cp s3://brewery/fonts/yorkten/ "$HOME/.local/share/fonts" --recursive
env:
AWS_ENDPOINT_URL: https://s3.eu-central-003.backblazeb2.com
AWS_DEFAULT_REGION: eu-central
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Compile Scores
run: make all
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Scores
path: build/*
- name: Upload Release Assets
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
run: gh release upload "$GITHUB_REF_NAME" build/*
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}