35 lines
762 B
YAML
35 lines
762 B
YAML
name: Build and Release PDF
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "**"
|
|
|
|
jobs:
|
|
builder:
|
|
uses: karaolidis/workflows/.gitea/workflows/builder.yaml@main
|
|
with:
|
|
registry: git.karaolidis.com
|
|
username: ${{ github.repository_owner }}
|
|
secrets:
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
release:
|
|
runs-on: nix
|
|
needs: builder
|
|
container:
|
|
image: ${{ needs.builder.outputs.tag }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Compile PDF
|
|
run: xelatex main.tex
|
|
|
|
- name: Release
|
|
uses: https://github.com/akkuman/gitea-release-action@main
|
|
with:
|
|
name: "Release ${{ github.sha }}"
|
|
tag_name: "release-${{ github.sha }}"
|
|
files: main.pdf
|