Skip to content

Commit

Permalink
build: fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
truenicoco committed Jan 6, 2025
1 parent d3ca199 commit 1d8d14f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
- name: Build PyPI package
run: uv build

artifacts:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/upload-artifact@v4
with:
name: hh-creator-${{ github.ref_name }}-windows.zip
Expand All @@ -41,10 +45,11 @@ jobs:
name: hh-creator-${{ github.ref_name }}-pypi.zip
path: dist

- name: PyPI release
if: startsWith(github.ref, 'refs/tags/v')
run: uv publish
gh-release:
runs-on: ubuntu-latest
needs: build

steps:
- name: Zip for github release
if: startsWith(github.ref, 'refs/tags/v')
uses: montudor/action-zip@v1
Expand All @@ -57,3 +62,13 @@ jobs:
files:
hh-creator-${{ github.ref_name }}-windows.zip
dist/*

pypi-publish:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write
steps:
- name: PyPI release
run: uv publish

0 comments on commit 1d8d14f

Please sign in to comment.