From 79933f699e1c0374922f6283bbb3184c4e669112 Mon Sep 17 00:00:00 2001 From: Mythir Date: Wed, 21 May 2025 10:36:01 +0200 Subject: [PATCH 1/4] UV build --- .github/workflows/release.yaml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 22e2790..cb787cc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,6 +4,7 @@ on: push: tags: - "*" + pull_request: jobs: publish: @@ -15,17 +16,19 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.8" - - name: Install poetry - uses: abatilo/actions-poetry@v4 - - name: Version poetry package - run: poetry version "${{ github.ref_name }}" - - name: Build poetry package - run: poetry build - - name: Publish distribution 📦 to PyPI - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Install uv + uses: astral-sh/setup-uv@v5 with: - password: ${{ secrets.PYPI_API_TOKEN }} - - name: Release - uses: softprops/action-gh-release@v2 - with: - name: "Release ${{ github.ref_name }}" + version: "0.7.6" + - name: Version uv package + run: uv version "${{ github.ref_name }}" + - name: Build uv package + run: uv build + # - name: Publish distribution 📦 to PyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # password: ${{ secrets.PYPI_API_TOKEN }} + # - name: Release + # uses: softprops/action-gh-release@v2 + # with: + # name: "Release ${{ github.ref_name }}" From 2a13915167d3a1f7988d64999ccfcd7b64d925f2 Mon Sep 17 00:00:00 2001 From: Mythir Date: Wed, 21 May 2025 10:37:45 +0200 Subject: [PATCH 2/4] Test with archive --- .github/workflows/release.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index cb787cc..b5d419a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,6 +24,11 @@ jobs: run: uv version "${{ github.ref_name }}" - name: Build uv package run: uv build + - name: Archive build + uses: actions/upload-artifact@v4 + with: + name: results + path: dist/* # - name: Publish distribution 📦 to PyPI # uses: pypa/gh-action-pypi-publish@release/v1 # with: From 8f9ec4d93b3407adcc8134075cc7c534efb4f991 Mon Sep 17 00:00:00 2001 From: Mythir Date: Wed, 21 May 2025 11:04:21 +0200 Subject: [PATCH 3/4] Test --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b5d419a..b1a2530 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -21,7 +21,8 @@ jobs: with: version: "0.7.6" - name: Version uv package - run: uv version "${{ github.ref_name }}" + # run: uv version "${{ github.ref_name }}" + run: uv version "42.0.0" - name: Build uv package run: uv build - name: Archive build From ad2f42a607987f5d5290752b4c47c0e749168326 Mon Sep 17 00:00:00 2001 From: Mythir Date: Wed, 21 May 2025 11:05:57 +0200 Subject: [PATCH 4/4] Done --- .github/workflows/release.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b1a2530..333eb34 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -4,7 +4,6 @@ on: push: tags: - "*" - pull_request: jobs: publish: @@ -21,20 +20,14 @@ jobs: with: version: "0.7.6" - name: Version uv package - # run: uv version "${{ github.ref_name }}" - run: uv version "42.0.0" + run: uv version "${{ github.ref_name }}" - name: Build uv package run: uv build - - name: Archive build - uses: actions/upload-artifact@v4 + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 with: - name: results - path: dist/* - # - name: Publish distribution 📦 to PyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.PYPI_API_TOKEN }} - # - name: Release - # uses: softprops/action-gh-release@v2 - # with: - # name: "Release ${{ github.ref_name }}" + password: ${{ secrets.PYPI_API_TOKEN }} + - name: Release + uses: softprops/action-gh-release@v2 + with: + name: "Release ${{ github.ref_name }}"