feat: able to build the constitution
This commit is contained in:
parent
08eb9f6f81
commit
240b2ab9cf
4 changed files with 60 additions and 1 deletions
29
.forgejo/workflows/push_constitution.yaml
Normal file
29
.forgejo/workflows/push_constitution.yaml
Normal 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"
|
Loading…
Add table
Add a link
Reference in a new issue