Skip to content

Commit

Permalink
Fix deploy by read dist path form output of previous steep (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Aug 16, 2024
1 parent 069c0d4 commit 7c4d7de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: hynek/build-and-inspect-python-package@v2
id: build_dist
- name: determine tag
run: echo "tag=${GITHUB_REF/refs\/tags\/v/}" >> "$GITHUB_ENV"
- name: Create Release
Expand All @@ -30,10 +31,10 @@ jobs:
draft: false
prerelease: ${{ contains(env.tag, 'rc') || contains(env.tag, 'a') || contains(env.tag, 'b') }}
target_commitish: ${{ github.sha }}
files: |
dist/*
files: ${{ steps.build_dist.outputs.dist }}
- name: Publish PyPI Package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TWINE_API_KEY }}
packages-dir: ${{ steps.build_dist.outputs.dist }}

0 comments on commit 7c4d7de

Please sign in to comment.