Skip to content

Commit

Permalink
use support github action for github release
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalle committed May 17, 2023
1 parent 47dae56 commit 8ca4773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,33 +50,9 @@ jobs:
name: artifact
path: dist

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
draft: false
prerelease: false

- name: Get Asset name
run: |
export PKG=$(ls dist/ | grep tar)
set -- $PKG
echo "name=$1" >> $GITHUB_ENV
- name: Upload Release Asset (sdist) to GitHub
- name: Upload Github release
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/${{ env.name }}
asset_name: ${{ env.name }}
asset_content_type: application/zip
uses: softprops/action-gh-release@v1

- name: Upload Release Assets to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Changelog of hydxlib
------------------

- Build the release with the build package instead of setuptools.
- Rewrite release workflow to use a supported github action for github release.


1.5.1 (2023-05-17)
Expand Down

0 comments on commit 8ca4773

Please sign in to comment.