Update CI
All checks were successful
Build and Release PDF / builder (push) Has been skipped
Build and Release PDF / filter (push) Successful in 27s
Build and Release PDF / release (push) Has been skipped

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-14 14:50:10 +01:00
parent ccb62ab87c
commit 44ad7fa9f0
2 changed files with 50 additions and 18 deletions

9
.gitea/Containerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM catthehacker/ubuntu:act-latest
RUN apt-get update && apt-get install -y texlive-xetex texlive-science texlive-fonts-extra
RUN wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Regular.ttf && \
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Bold.ttf && \
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Italic.ttf && \
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-BoldItalic.ttf && \
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Light.ttf
RUN fc-cache -fv

View File

@@ -6,32 +6,55 @@ on:
- "**"
jobs:
release:
runs-on: ubuntu-latest
filter:
runs-on: nix
outputs:
builder: ${{ steps.filter.outputs.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install LaTeX (XeLaTeX)
run: |
apt-get update
apt-get install -y texlive-xetex texlive-science texlive-fonts-extra
- name: Filter paths
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
builder:
- '.gitea/Containerfile'
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Regular.ttf
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Bold.ttf
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Italic.ttf
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-BoldItalic.ttf
wget -P /usr/local/share/fonts https://github.com/CatharsisFonts/Cormorant/raw/refs/heads/master/fonts/ttf/CormorantGaramond-Light.ttf
fc-cache -fv
builder:
if: ${{ needs.filter.outputs.builder == 'true' }}
runs-on: nix
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Build Builder Image
run: |
buildah build -f .gitea/Containerfile -t git.karaolidis.com/karaolidis/cv/builder
- name: Push Builder Image
run: |
echo "${{ secrets.GITEA_REGISTRY_PASSWORD }}" | buildah login -u "${{ secrets.GITEA_REGISTRY_USER }}" --password-stdin git.karaolidis.com
skopeo copy \
containers-storage:git.karaolidis.com/karaolidis/cv/builder:latest \
docker://git.karaolidis.com/karaolidis/cv/builder:latest
release:
runs-on: nix
needs: [filter, builder]
container:
image: git.karaolidis.com/karaolidis/cv/builder
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Compile PDF
run: |
xelatex main.tex
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
files: main.pdf