-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.18 KB
/
build.yaml
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
# Validate the file using e.g.
# https://rhysd.github.io/actionlint/
name: Build tex version
on:
push:
branches: [ main ]
paths:
- 'md_version/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pandoc ⚙️
run: |
wget https://github.com/jgm/pandoc/releases/download/3.5/pandoc-3.5-1-amd64.deb
sudo dpkg -i pandoc-3.5-1-amd64.deb
- name: Build 🏗️
run: |
pwd
ls
cd md_version/
cd ${{ github.workspace }}/md_version/
make tex
cd ../
zip -r tex_version.zip tex_version
zip -r md_version.zip md_version
- name: Create package 🎁
uses: crowbarmaster/GH-Automatic-Releases@latest
with:
automatic_release_tag: "latest"
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: true
draft: false
files: tex_version.zip
- name: Upload artifact
uses: actions/upload-pages-artifact@v3.0.1
with:
path: public