This commit is contained in:
parent
6baf2d2cad
commit
ab64aa8384
1 changed files with 42 additions and 42 deletions
|
@ -8,51 +8,51 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# TODO: belongs in the other repo
|
# TODO: belongs in the other repo
|
||||||
build-latex:
|
# build-latex:
|
||||||
name: Build LaTeX documents
|
# name: Build LaTeX documents
|
||||||
runs-on: alpine-latex
|
# runs-on: alpine-latex
|
||||||
defaults:
|
# defaults:
|
||||||
run:
|
# run:
|
||||||
shell: ash -eo pipefail {0}
|
# shell: ash -eo pipefail {0}
|
||||||
steps:
|
# steps:
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
run: apk add --no-cache nodejs git openssh
|
# run: apk add --no-cache nodejs git openssh
|
||||||
- name: Checkout LaTeX repository
|
# - name: Checkout LaTeX repository
|
||||||
run: git clone https://git.ctbk.de/ctbk/ctbk-satzung.git satzung
|
# run: git clone https://git.ctbk.de/ctbk/ctbk-satzung.git satzung
|
||||||
# uses: actions/checkout@v4
|
# # uses: actions/checkout@v4
|
||||||
- name: Clone main repo for scripts
|
# - name: Clone main repo for scripts
|
||||||
run: git clone https://github.com/${{ github.repository }} website
|
# run: git clone https://github.com/${{ github.repository }} website
|
||||||
- run: mkdir satzung/build satzung/output
|
# - run: mkdir satzung/build satzung/output
|
||||||
|
|
||||||
- name: Make LaTeX script executable
|
# - name: Make LaTeX script executable
|
||||||
run: chmod +x website/.forgejo/workflows/latex.sh
|
# run: chmod +x website/.forgejo/workflows/latex.sh
|
||||||
- name: Build Satzung
|
# - name: Build Satzung
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: ../website/.forgejo/workflows/latex.sh Satzung.tex build
|
# run: ../website/.forgejo/workflows/latex.sh Satzung.tex build
|
||||||
- name: Build Geschäftsordnung
|
# - name: Build Geschäftsordnung
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: ../website/.forgejo/workflows/latex.sh Geschaeftsordnung.tex build
|
# run: ../website/.forgejo/workflows/latex.sh Geschaeftsordnung.tex build
|
||||||
- name: Build Gebührenordnung
|
# - name: Build Gebührenordnung
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: ../website/.forgejo/workflows/latex.sh Gebuehrenordnung.tex build
|
# run: ../website/.forgejo/workflows/latex.sh Gebuehrenordnung.tex build
|
||||||
- name: Build Mitgliedsantrag
|
# - name: Build Mitgliedsantrag
|
||||||
working-directory: satzung/Mitgliedsantrag-main
|
# working-directory: satzung/Mitgliedsantrag-main
|
||||||
run: ../../website/.forgejo/workflows/latex.sh Mitgliedsantrag_Lastschriftmandat_klein.tex ../build
|
# run: ../../website/.forgejo/workflows/latex.sh Mitgliedsantrag_Lastschriftmandat_klein.tex ../build
|
||||||
|
|
||||||
- name: Move PDFs to output directory
|
# - name: Move PDFs to output directory
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: |
|
# run: |
|
||||||
mv build/*.pdf output
|
# mv build/*.pdf output
|
||||||
mv output/Mitgliedsantrag_Lastschriftmandat_klein.pdf output/Mitgliedsantrag.pdf
|
# mv output/Mitgliedsantrag_Lastschriftmandat_klein.pdf output/Mitgliedsantrag.pdf
|
||||||
|
|
||||||
- name: Output SSH key to file
|
# - name: Output SSH key to file
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: |
|
# run: |
|
||||||
echo "${{ secrets.SSH_KEY }}" > ssh_id
|
# echo "${{ secrets.SSH_KEY }}" > ssh_id
|
||||||
chmod 0600 ssh_id
|
# chmod 0600 ssh_id
|
||||||
- name: Transfer built files
|
# - name: Transfer built files
|
||||||
working-directory: satzung
|
# working-directory: satzung
|
||||||
run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./output/. ${{ env.SERVER_URL }}/docs
|
# run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./output/. ${{ env.SERVER_URL }}/docs
|
||||||
|
|
||||||
build-website:
|
build-website:
|
||||||
name: Build and deploy website
|
name: Build and deploy website
|
||||||
|
|
Loading…
Add table
Reference in a new issue