From f1e8994eb8ec1373068f2111bd0a0665c985f069 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Tue, 9 Jan 2024 19:16:52 +0200 Subject: [PATCH] chore(gh-actions): add automated release fix: indentations --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ .github/workflows/typst.yml | 6 ++---- 2 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..edd4b77 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.github/workflows/typst.yml b/.github/workflows/typst.yml index 022a611..1827f69 100644 --- a/.github/workflows/typst.yml +++ b/.github/workflows/typst.yml @@ -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