feat: able to build the constitution

This commit is contained in:
silver 2025-03-17 23:34:23 +00:00
parent 08eb9f6f81
commit 240b2ab9cf
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
4 changed files with 60 additions and 1 deletions

View file

@ -0,0 +1,29 @@
name: On_Push
on:
push:
# branches:
# - 'main'
paths:
- Resources/Documents/Constitution.tex
# 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
permissions:
# needs this to create tags and releases
contents: write
steps:
# has to checkout first in order to be able to use the action
- uses: https://code.forgejo.org/actions/checkout@v4
- name: Use local action
uses: ./.forgejo/actions/build-release-pdf
with:
repository: ${{ gitea.repository }}
ref_name: ${{ gitea.ref_name }}
token: ${{ secrets.API_TOKEN_FORGEJO }}
script: "constitution"