Skip to content

Commit 011aff9

Browse files
committed
feat(CI): Release in CI
1 parent fe9e8c3 commit 011aff9

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
github-token: ${{ secrets.GITHUB_TOKEN }}
2525
biber-version: '2.17'
2626

27-
- name: Build slides
27+
- name: Build report
2828
working-directory: assignment/01/protokol
2929
run: tectonic -X build
3030

.github/workflows/release.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: "Create Tagged Release with PDF"
3+
4+
on:
5+
push:
6+
tags:
7+
- '**'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- uses: actions/cache@v3
16+
name: Tectonic Cache
17+
with:
18+
path: ~/.cache/Tectonic
19+
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
20+
restore-keys: |
21+
${{ runner.os }}-tectonic-
22+
- uses: wtfjoke/setup-tectonic@v3
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
biber-version: '2.17'
26+
27+
- name: Build report
28+
working-directory: assignment/01/protokol
29+
run: tectonic -X build
30+
31+
- uses: "marvinpinto/action-automatic-releases@latest"
32+
with:
33+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
34+
prerelease: false
35+
files: |
36+
assignment/01/protokol/build/*/*.pdf

0 commit comments

Comments
 (0)