From 19080bf30748ddc27f7b734f8d2f9f8698f7eb91 Mon Sep 17 00:00:00 2001 From: Mike Gerber Date: Tue, 1 Aug 2023 18:54:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20v0.0.6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 29 ++++++++++++++++++++++++----- pyproject.toml | 2 +- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd946e3..09ca21f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,15 +6,33 @@ on: - "v*.*.*" jobs: - github-release: + build: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 + - name: Build package + run: python3 -m pip install --upgrade build && python3 -m build + - name: Upload dist + uses: actions/upload-artifact@v3 + with: + name: dist + path: dist/ + + github-release: + needs: build + runs-on: ubuntu-latest + steps: + - name: Download dist + uses: actions/download-artifact@v3 + with: + name: dist + path: dist/ - name: Create release on GitHub uses: softprops/action-gh-release@v1 pypi-publish: + needs: build runs-on: ubuntu-latest environment: name: pypi @@ -22,9 +40,10 @@ jobs: permissions: id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Build package - run: python3 -m pip install --upgrade build && python3 -m build + - name: Download dist + uses: actions/download-artifact@v3 + with: + name: dist + path: dist/ - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/pyproject.toml b/pyproject.toml index 70bc6dc..c733c65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"] [project] name = "setuptools_ocrd" -version = "0.0.5" +version = "0.0.6" authors = [ {name = "Mike Gerber", email = "mike.gerber@sbb.spk-berlin.de"}, ]