Skip to content

Commit

Permalink
screw the artifacts just build, release, publish
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon committed Dec 12, 2024
1 parent 849142d commit 6c858fa
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Download build artifact
uses: actions/download-artifact@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
name: dist
path: ./dist/

- name: Install Hatch
run: pip install hatch

- name: Build
run: hatch build

# - name: Download build artifact - can't get this to work
# uses: actions/download-artifact@v4
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# name: dist
# path: ./dist/

- name: Publish
uses: pypa/[email protected]
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload built package as artifact
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
# - name: Upload built package as artifact
# uses: actions/upload-artifact@v4
# with:
# name: dist
# path: dist/

0 comments on commit 6c858fa

Please sign in to comment.