35 lines
931 B
YAML
35 lines
931 B
YAML
|
name: On_Push
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- 'main'
|
||
|
paths:
|
||
|
- .forgejo/**/*
|
||
|
- Committee/**/Handovers/*
|
||
|
- Minutes/**/*
|
||
|
- Committee/**/Budget/*
|
||
|
- Events/**/*
|
||
|
# so we can manually build the artifacts
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
# rust code must be formatted for standardisation
|
||
|
pdfs:
|
||
|
# build it using teh base nixos system, helps with caching
|
||
|
runs-on: nix
|
||
|
strategy:
|
||
|
matrix:
|
||
|
script: [ handovers, minutes, budget, events ]
|
||
|
steps:
|
||
|
# get the repo first
|
||
|
- uses: https://code.forgejo.org/actions/checkout@v4
|
||
|
# actual script to run the build process
|
||
|
- run: nix run .#${{ matrix.script }}
|
||
|
- run: ls -lah
|
||
|
- run: ls -lah pdf_${{ matrix.script }}/
|
||
|
# upload the files
|
||
|
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||
|
with:
|
||
|
name: PDFs-${{ matrix.script }}
|
||
|
path: pdf_${{ matrix.script }}/
|