Skip to content

Commit 38cddd1

Browse files
committed
Trying automatic action.
1 parent d281035 commit 38cddd1

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/build.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Validate the file using e.g.
2+
# https://rhysd.github.io/actionlint/
3+
4+
name: Build tex version
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
paths:
10+
- 'md_version/**'
11+
workflow_dispatch:
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Setup pandoc ⚙️
25+
run: |
26+
sudo apt-get update
27+
wget https://github.com/jgm/pandoc/releases/download/3.5/pandoc-3.5-1-amd64.deb
28+
sudo dpkg -i pandoc-3.5-1-amd64.deb
29+
sudo apt-get install -y texlive texlive-xetex texlive-latex-extra
30+
- name: Build 🏗️
31+
run: |
32+
cd /home/runner/work/princomp.github.io/princomp.github.io/md_version/
33+
make tex
34+
cd ../
35+
zip -r tex_version.zip tex_version
36+
zip -r md_version.zip md_version
37+
- name: Create package 🎁
38+
uses: crowbarmaster/GH-Automatic-Releases@latest
39+
with:
40+
automatic_release_tag: "latest"
41+
repo_token: ${{ secrets.GITHUB_TOKEN }}
42+
prerelease: true
43+
draft: false
44+
files: tex_version.zip
45+
- name: Upload artifact
46+
uses: actions/[email protected]
47+
with:
48+
path: public

0 commit comments

Comments
 (0)