| 1 |
name: CI |
| 2 |
on: |
| 3 |
- push |
| 4 |
- pull_request |
| 5 |
|
| 6 |
permissions: |
| 7 |
contents: write |
| 8 |
|
| 9 |
jobs: |
| 10 |
linux-build: |
| 11 |
runs-on: ubuntu-latest |
| 12 |
steps: |
| 13 |
- name: Checkout |
| 14 |
uses: actions/checkout@v3 |
| 15 |
with: |
| 16 |
fetch-depth: 0 |
| 17 |
|
| 18 |
- name: Updates |
| 19 |
run: sudo apt-get update |
| 20 |
|
| 21 |
- name: Dependencies |
| 22 |
run: sudo apt-get install python3-fontforge ttfautohint |
| 23 |
|
| 24 |
- name: Build |
| 25 |
run: | |
| 26 |
make -j$(nproc) |
| 27 |
cd build |
| 28 |
zip ../EBGaramond.zip * |
| 29 |
|
| 30 |
- name: Upload to Github Artifacts |
| 31 |
if: github.event_name == 'push' || github.event_name == 'pull_request' |
| 32 |
uses: actions/upload-artifact@v3 |
| 33 |
with: |
| 34 |
name: EBGaramond |
| 35 |
path: build/ |
| 36 |
|
| 37 |
- name: Update nightly release |
| 38 |
|
| 39 |
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && success() |
| 40 |
uses: pyTooling/Actions/releaser@main |
| 41 |
with: |
| 42 |
tag: nightly |
| 43 |
rm: true |
| 44 |
token: ${{ secrets.GITHUB_TOKEN }} |
| 45 |
files: EBGaramond.zip |