2022-09-14 16:30:02 +03:00

41 lines
767 B
YAML

name: Makefile CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add make
make dist
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/photobook*.zip
- name: Build artifacts
uses: actions/upload-artifact@v3
with:
name: build artifacts
path: photobook.pdf
- name: Dist artifacts
uses: actions/upload-artifact@v3
with:
name: dist artifacts
path: dist/photobook*.zip