Skip to content

Commit

Permalink
ci: fix issue with version in pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Jun 27, 2023
1 parent 51fe189 commit 94a62a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
CIBW_BUILD:
required: true
type: string
VERSION:
required: false
type: string

jobs:
build-wheels:
Expand All @@ -20,6 +23,9 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set correct version
if: ${{ inputs.VERSION != '' }}
run: echo -n "${{ inputs.VERSION }}" > VERSION
- name: Build wheels
uses: pypa/[email protected]
with:
Expand All @@ -36,6 +42,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set correct version
if: ${{ inputs.VERSION != '' }}
run: echo -n "${{ inputs.VERSION }}" > VERSION
- name: Build sdist
run: pipx run build --sdist
- uses: actions/upload-artifact@v3
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
with:
CIBW_SKIP: "pp* cp36-* cp37-*"
CIBW_BUILD: "cp*-macosx* cp*-manylinux*"
VERSION: ${{ github.ref_name }}
secrets: inherit

release-python-package:
Expand Down

0 comments on commit 94a62a6

Please sign in to comment.