-
Notifications
You must be signed in to change notification settings - Fork 33
70 lines (57 loc) · 1.59 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: check
on:
push:
branches:
- main
pull_request:
schedule:
- cron: '1 2 5 * *'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: reitzig/texlive-base:2023.1
options: --user root
env:
SRC_DIR: /__w/LNI/LNI
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Add x86_64-linuxmusl to PATH
run: echo "/usr/local/texlive/2023/bin/x86_64-linuxmusl" >> $GITHUB_PATH
- name: Install git
run: apk add git
- name: Build examples (using build.sh)
run: /bin/entrypoint work
- name: Upload build result
uses: actions/upload-artifact@v3
with:
name: PDFs
path: '/work/out'
- name: Prepare GH pages content
if: github.ref == 'refs/heads/main'
run: |
set -e
mkdir /tmp/gh-pages
cd /tmp/gh-pages
cp /__w/LNI/LNI/README.md index.md
cp /work/out/*.pdf .
- name: Deploy to GH pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: /tmp/gh-pages
- name: Install dependencies for ctanify
run: apk add perl-file-copy-recursive zip
- name: Prepare for CTAN
run: ./prepare_for_CTAN
- name: Upload CTAN build
uses: actions/upload-artifact@v3
with:
name: CTAN
path: '*.tar.gz'