Skip to content

Commit

Permalink
Fix build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Sep 17, 2024
1 parent 7265ffe commit 8787d15
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ jobs:
runs-on: ubuntu-latest
environment: release
steps:
- name: Download Python Package Artifacts
- name: Download Source Tarball Artifact
uses: actions/download-artifact@v4
with:
name: dist
name: Source Tarball
path: dist
- name: Download Wheel Artifact
uses: actions/download-artifact@v4
with:
name: Python Wheel
path: dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ on:

jobs:
release:
name: Publish Python Wheel
name: Create Github Release
runs-on: ubuntu-latest
steps:
- name: Download Python Build Artifacts
uses: actions/download-artifact@v4
with:
name: dist
name: Source Tarball
path: dist

- name: Download Python Build Artifacts
uses: actions/download-artifact@v4
with:
name: Python Wheel
path: dist

- name: Create Release
Expand Down
22 changes: 21 additions & 1 deletion .github/workflows/package-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,26 @@ on:
value: "${{ jobs.build.outputs.version }}"

jobs:
build-source:
name: Build Python Source Tarball
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install build
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build Source Tarball
run: |
python3 -m build -s
- name: Python Build Artifact
uses: actions/upload-artifact@v4
with:
name: Source Tarball
path: dist/*
retention-days: 5

build:
name: Build Python Wheel
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,7 +77,7 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: dist
name: Python Wheel
path: dist/*
retention-days: 5
- name: Read Version
Expand Down

0 comments on commit 8787d15

Please sign in to comment.