-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: create-new-release.yml - introduce build stage to a workflow
- Loading branch information
1 parent
c480fc8
commit bbcf5f9
Showing
2 changed files
with
38 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build pip package | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
description: Version string from hatch | ||
type: string | ||
required: true | ||
|
||
env: | ||
app-name: "chronovoyage" | ||
|
||
jobs: | ||
main: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Hatch | ||
uses: pypa/hatch@install | ||
|
||
- name: Build Package | ||
run: hatch build -c | ||
|
||
- name: Upload artifacts (sdist) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pip-package--sdist | ||
path: dist/${{ env.app-name }}-${{ inputs.version }}.tar.gz | ||
|
||
- name: Upload artifacts (wheel) | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: pip-package--wheel | ||
path: dist/${{ env.app-name }}-${{ inputs.version }}-py3-none-any.whl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters