-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request 'feature/github-workflow' (#33) from feature/githu…
…b-workflow into main Reviewed-on: https://git.montehaselino.de/DHBW/dhbw-abb-typst-template/pulls/33 Refs: #32
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: GitHub Action for checking typst compilation | ||
run-name: Performing Typst compilation | ||
on: [push] | ||
|
||
jobs: | ||
run-ci-linux: | ||
runs-on: ubuntu-latest | ||
env: | ||
TYPST_INSTALL: $HOME/.typst | ||
TYPST_VERSION: 0.11.1 | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install Typst CLI | ||
run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION" | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Run CI | ||
run: export PATH="$TYPST_INSTALL/bin:$PATH" && bash -c ./run-ci.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
tags: | ||
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | ||
|
||
name: Create Release | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install Typst CLI | ||
run: curl -fsSL https://typst.community/typst-install/install.sh | sh -s "$TYPST_VERSION" | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Run CI | ||
run: export PATH="$TYPST_INSTALL/bin:$PATH" && bash -c ./run-ci.sh | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@latest | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false |