forked from Shifty/pyserveX
feat: Update release workflow to use softprops/action-gh-release for asset uploads
This commit is contained in:
parent
ec0e55cd5c
commit
e2646a752a
@ -107,13 +107,11 @@ jobs:
|
|||||||
echo "CHANGELOG=Automatically generated release" >> $GITHUB_OUTPUT
|
echo "CHANGELOG=Automatically generated release" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release with assets
|
||||||
uses: actions/create-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref_name || github.event.inputs.version }}
|
tag_name: ${{ github.ref_name || github.event.inputs.version }}
|
||||||
release_name: PyServeX ${{ github.ref_name || github.event.inputs.version }}
|
name: PyServeX ${{ github.ref_name || github.event.inputs.version }}
|
||||||
body: |
|
body: |
|
||||||
${{ steps.changelog.outputs.CHANGELOG }}
|
${{ steps.changelog.outputs.CHANGELOG }}
|
||||||
|
|
||||||
@ -130,26 +128,10 @@ jobs:
|
|||||||
```
|
```
|
||||||
draft: true
|
draft: true
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
files: |
|
||||||
- name: Upload Release Asset (wheel)
|
dist/*.whl
|
||||||
uses: actions/upload-release-asset@v1
|
dist/*.tar.gz
|
||||||
env:
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./dist/pyserve-*.whl
|
|
||||||
asset_name: pyserve-${{ github.ref_name || github.event.inputs.version }}.whl
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload Release Asset (tarball)
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./dist/pyserve-*.tar.gz
|
|
||||||
asset_name: pyserve-${{ github.ref_name || github.event.inputs.version }}.tar.gz
|
|
||||||
asset_content_type: application/gzip
|
|
||||||
|
|
||||||
- name: Release created
|
- name: Release created
|
||||||
run: echo "Draft release created! Check and publish in Gitea interface."
|
run: echo "Draft release created! Check and publish in Gitea interface."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user