chore(gh-actions): add automated release

fix: indentations
This commit is contained in:
Kristofers Solo 2024-01-09 19:16:52 +02:00
parent c79bdef3b3
commit f1e8994eb8
2 changed files with 27 additions and 4 deletions

25
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: dist/*.tar.gz

View File

@ -1,9 +1,7 @@
name: Build Typst document
on:
push:
- main
pull_request:
- main
push: main
pull_request: main
jobs:
typst-build:
runs-on: ubuntu-latest