mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2024-12-14 02:41:26 +01:00
Remove the release build because that (for now) is done in the UI and is
used as a controlled release trigger event for this workflow
This commit is contained in:
parent
bd80384efd
commit
a3b7c25920
32
.github/workflows/release_to_pypi.yml
vendored
32
.github/workflows/release_to_pypi.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Publish ${package_name} to PyPI / GitHub
|
name: Publish ${package_name} to PyPI and ReadTheDocs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -11,7 +11,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: ${{ github.ref_name }}
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
@ -29,29 +31,3 @@ jobs:
|
|||||||
user: __token__
|
user: __token__
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
- 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
|
|
||||||
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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user