-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (54 loc) · 1.77 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
47
48
49
50
51
52
53
54
55
56
name: Weekly Build
on:
schedule:
- cron: '30 19 18 11 *' # Executes at 2024-11-18T11:30:00-08:00
workflow_dispatch:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set Timezone
uses: szenius/[email protected]
with:
timezoneLinux: "America/Los_Angeles"
timezoneMacos: "America/Los_Angeles"
timezoneWindows: "Pacific Standard Time"
- 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]
if: ${{ github.ref == 'refs/heads/main' }}
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: |
TZ='America/Los_Angeles'
echo "today_date=$(date -I)" >> $GITHUB_ENV
- name: Create Release
uses: marvinpinto/[email protected]
if: ${{ github.event_name == 'schedule' && github.ref == 'refs/heads/main' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ env.today_date }}
prerelease: false
files: e4e_weekly_presentation*