diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index c7c29a2..de0865c 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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