Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m28s
Security / sonarqube (push) Successful in 2m41s

This commit is contained in:
Luke Tainton 2025-05-07 01:02:39 +02:00
parent 75f059bfb0
commit eed6f7d8b5

View File

@ -37,6 +37,7 @@ jobs:
-H 'accept: application/json' \
'${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/latest' | jq -r '.id')
echo "releaseid=$rid" >> "$GITEA_OUTPUT"
echo "$rid"
build_whl:
name: Build Wheel File
@ -64,11 +65,6 @@ jobs:
run: uv sync
- name: Build wheel file
run: uv build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: whl
path: dist/
- name: Upload Release Asset
run: |
for file in dist/*.whl; do
@ -78,18 +74,6 @@ jobs:
-F "attachment=@${{ gitea.workspace }}/$file" \
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${{ needs.get_release_id.outputs.releaseid }}"
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
uses: pypa/gh-action-pypi-publish@release/v1
with:
@ -97,10 +81,28 @@ jobs:
user: __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:
name: Publish Docker Images
runs-on: ubuntu-latest
needs: create_release
needs: tag
steps:
- name: Update Docker configuration
continue-on-error: true