Update .gitea/workflows/release.yml
This commit is contained in:
parent
75f059bfb0
commit
eed6f7d8b5
@ -37,6 +37,7 @@ jobs:
|
|||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
'${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/latest' | jq -r '.id')
|
'${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/latest' | jq -r '.id')
|
||||||
echo "releaseid=$rid" >> "$GITEA_OUTPUT"
|
echo "releaseid=$rid" >> "$GITEA_OUTPUT"
|
||||||
|
echo "$rid"
|
||||||
|
|
||||||
build_whl:
|
build_whl:
|
||||||
name: Build Wheel File
|
name: Build Wheel File
|
||||||
@ -64,11 +65,6 @@ jobs:
|
|||||||
run: uv sync
|
run: uv sync
|
||||||
- name: Build wheel file
|
- name: Build wheel file
|
||||||
run: uv build
|
run: uv build
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: whl
|
|
||||||
path: dist/
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
run: |
|
run: |
|
||||||
for file in dist/*.whl; do
|
for file in dist/*.whl; do
|
||||||
@ -78,18 +74,6 @@ jobs:
|
|||||||
-F "attachment=@${{ gitea.workspace }}/$file" \
|
-F "attachment=@${{ gitea.workspace }}/$file" \
|
||||||
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${{ needs.get_release_id.outputs.releaseid }}"
|
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${{ needs.get_release_id.outputs.releaseid }}"
|
||||||
done
|
done
|
||||||
|
|
||||||
publish_pypi:
|
|
||||||
name: Publish to PyPI
|
|
||||||
needs: build_whl
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Create dist folder
|
|
||||||
run: mkdir -p dist
|
|
||||||
- uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: whl
|
|
||||||
path: dist
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
uses: pypa/gh-action-pypi-publish@release/v1
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
with:
|
with:
|
||||||
@ -97,10 +81,28 @@ jobs:
|
|||||||
user: __token__
|
user: __token__
|
||||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
|
# publish_pypi:
|
||||||
|
# name: Publish to PyPI
|
||||||
|
# needs: build_whl
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Create dist folder
|
||||||
|
# run: mkdir -p dist
|
||||||
|
# - uses: actions/download-artifact@v4
|
||||||
|
# with:
|
||||||
|
# name: whl
|
||||||
|
# path: dist
|
||||||
|
# - name: Publish to PyPI
|
||||||
|
# uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
# with:
|
||||||
|
# # user: ${{ vars.PYPI_USERNAME }}
|
||||||
|
# user: __token__
|
||||||
|
# password: ${{ secrets.PYPI_API_TOKEN }}
|
||||||
|
|
||||||
create_docker:
|
create_docker:
|
||||||
name: Publish Docker Images
|
name: Publish Docker Images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: create_release
|
needs: tag
|
||||||
steps:
|
steps:
|
||||||
- name: Update Docker configuration
|
- name: Update Docker configuration
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user