-
Notifications
You must be signed in to change notification settings - Fork 76
37 lines (31 loc) · 924 Bytes
/
build.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
name: Nightly Build
on:
schedule:
- cron: '0 16 * * *'
workflow_dispatch:
jobs:
nightly-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wtfjoke/setup-tectonic@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: build pdf
run: |
apt-get update && apt-get install -y libfuse2
pip install Pygments
cd src
sed '/includeonly/d' main.tex > ProgrammingRust.tex
tectonic -Z shell-escape ProgrammingRust.tex
- name: upload pdf file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/ProgrammingRust.pdf
asset_name: ProgrammingRust.pdf
tag: refs/tags/v0.99
overwrite: true