Skip to content

Commit

Permalink
Another CI fix- this time fixing pypi and also putting the wheels int…
Browse files Browse the repository at this point in the history
…o zip files so we dont have a huge number of assets in github release
  • Loading branch information
gsleap committed Oct 17, 2024
1 parent 6a36dbb commit 30a5235
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ jobs:
eval mv target/release/libmwalib.${LIB_GLOB} include/mwalib.h .
eval tar -acvf mwalib-${TAG}-${KERNEL}-${TARGET}.tar.gz \
LICENSE LICENSE-cfitsio README.md CHANGELOG.md \
libmwalib.${LIB_GLOB} mwalib.h
libmwalib.${LIB_GLOB} mwalib.h
eval tar -acvf mwalib-${TAG}-${KERNEL}-${TARGET}-python.tar.gz \
LICENSE LICENSE-cfitsio README.md CHANGELOG.md \
./dist/*.whl
done
- name: Upload linux tarball
Expand Down Expand Up @@ -174,7 +177,10 @@ jobs:
eval mv target/release/libmwalib.${LIB_GLOB} include/mwalib.h .
eval tar -acvf mwalib-${TAG}-${KERNEL}-${TARGET}.tar.gz \
LICENSE LICENSE-cfitsio README.md CHANGELOG.md \
libmwalib.${LIB_GLOB} mwalib.h
libmwalib.${LIB_GLOB} mwalib.h
eval tar -acvf mwalib-${TAG}-${KERNEL}-${TARGET}-python.tar.gz \
LICENSE LICENSE-cfitsio README.md CHANGELOG.md \
./dist/*.whl
- name: Upload macos tarball
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -204,12 +210,13 @@ jobs:
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes *.tar.gz *.whl
--generate-notes *.tar.gz
pypi_release:
name: Publish to pypi
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
environment: CI
needs: [create-github-release]
permissions:
# Use to sign the release artifacts
Expand Down

0 comments on commit 30a5235

Please sign in to comment.