2023-10-18 09:22:08 +02:00
|
|
|
name: Build LaTeX packages
|
|
|
|
on: [push]
|
2021-10-24 10:35:53 +02:00
|
|
|
|
2023-10-18 09:22:08 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: latex-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
2023-10-18 11:06:35 +02:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-10-18 11:12:09 +02:00
|
|
|
fetch-depth: 0 # We need all history to correctly parse tag names
|
2023-10-18 11:11:01 +02:00
|
|
|
fetch-tags: true
|
2023-10-18 09:22:08 +02:00
|
|
|
- name: Setup git credentials and committer
|
|
|
|
run: .ci/configure_git.sh
|
2023-10-18 09:55:28 +02:00
|
|
|
env:
|
|
|
|
SSH_DEPLOY_KEY: ${{ secrets.ssh_deploy_key }}
|
2023-10-18 09:22:08 +02:00
|
|
|
- name: Clone build repository
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
2023-10-18 11:15:23 +02:00
|
|
|
repository: git@git.abstractnonsen.se/latex/latex-packages-build
|
2023-10-18 09:22:08 +02:00
|
|
|
path: build/LatexPackagesBuild
|
2023-10-18 10:11:47 +02:00
|
|
|
ref: master
|
2023-10-18 09:22:08 +02:00
|
|
|
- name: Checkout correct branch in build repository
|
|
|
|
run: |
|
|
|
|
.ci/setup_build_repo_branch.sh
|
2023-10-18 10:26:11 +02:00
|
|
|
env:
|
|
|
|
REF_NAME: ${{ github.ref_name }}
|
2023-10-18 09:22:08 +02:00
|
|
|
- name: Build packages
|
|
|
|
run: |
|
|
|
|
.ci/ci_build.sh # Note that this includes pushing to the build mirror
|
2023-10-18 11:04:38 +02:00
|
|
|
env:
|
|
|
|
REF_NAME: ${{ github.ref_name }}
|
2023-10-18 09:22:08 +02:00
|
|
|
deploy-pages:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: build
|
|
|
|
if: github.ref == 'refs/heads/master'
|
|
|
|
steps:
|
|
|
|
- name: Deploy to pages
|
|
|
|
uses: actions/pages@v1
|
|
|
|
with:
|
|
|
|
directory: build/
|