-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.33 KB
/
latex_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
38
39
40
41
42
43
44
45
46
name: Weekly Build
on:
schedule:
- cron: '30 14 * * 3'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: LaTeX Build
uses: xu-cheng/latex-action@v3
with:
root_file: presentation.tex
- name: Create Upload Artifact
run: |
cp presentation.pdf `date +e4e_weekly_presentation_%Y-%m-%dT%H-%M-%S.pdf`
mkdir out
cp presentation.pdf out/e4e_weekly_presentation.pdf
ls -al
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
path: e4e_weekly_presentation*
- name: Deploy to Github Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
clean: true
single-commit: true
folder: out
git-config-name: e4e_github_actions
git-config-email: [email protected]
- name: Prepare Release Parameters
run: |
echo "today_date=$(date -I)" >> $GITHUB_ENV
- name: Create Release
uses: marvinpinto/[email protected]
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.today_date }}
prerelease: false
files: e4e_weekly_presentation*