-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use action-gh-release to replace deprecated upload-release-asset
- Loading branch information
1 parent
89eb737
commit 205177b
Showing
2 changed files
with
4 additions
and
16 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 |
---|---|---|
|
@@ -136,25 +136,16 @@ jobs: | |
run: | | ||
echo "bottle_name=$(ls *.tar.gz)" >> $GITHUB_OUTPUT | ||
- name: Get File Name | ||
id: get_file_name | ||
run: | | ||
file_name="$(cat *.json | jq -r '."${{ env.TAP }}/${{ env.FORMULA }}".bottle.tags[].filename')" | ||
echo "file_name=$file_name" >> $GITHUB_OUTPUT | ||
- name: Upload bottles as artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: bottle-${{ matrix.os }} | ||
path: '*.bottle.*' | ||
|
||
- name: Upload release binary | ||
uses: actions/[email protected] | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ${{ steps.get_package_path.outputs.bottle_name }} | ||
asset_name: ${{ steps.get_file_name.outputs.file_name }} | ||
asset_content_type: application/x-gzip | ||
files: ${{ steps.get_package_path.outputs.bottle_name }} | ||
|
||
update-pr: | ||
needs: build-bottle | ||
|
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 |
---|---|---|
|
@@ -38,12 +38,9 @@ jobs: | |
run: | | ||
echo "package_name=$(ls dist/*.whl | cut -d / -f 2)" >> $GITHUB_OUTPUT | ||
- name: Upload release binary | ||
uses: actions/[email protected] | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: dist/${{ steps.get_package_name.outputs.package_name }} | ||
asset_name: ${{ steps.get_package_name.outputs.package_name }} | ||
asset_content_type: application/zip | ||
files: dist/${{ steps.get_package_name.outputs.package_name }} | ||
- name: Upload to PyPi | ||
env: | ||
TWINE_USERNAME: __token__ | ||
|