-
Notifications
You must be signed in to change notification settings - Fork 49
39 lines (33 loc) · 1021 Bytes
/
release.yml
File metadata and controls
39 lines (33 loc) · 1021 Bytes
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
name: Build and release PDF
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install build dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get install pandoc texlive-latex-base texlive-xetex fonts-inter
- name: Build PDF
run: |
./pdf/build.sh
- name: Create release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
REVIEW_DATE="`cat LAST_MAJOR_REVIEW.txt`"
GENERATED_DATE=`date -u '+%Y-%m-%d'`
gh release create release-${{ github.sha }} \
--notes "PDF generated: $GENERATED_DATE | Last major curriculum review: $REVIEW_DATE" \
--target ${{ github.sha }} \
--title $GENERATED_DATE \
pdf/MDN-Curriculum.pdf