From 1cb146af21ffd0b5be24703419cf4a192c4ec0ab Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Wed, 26 Apr 2023 19:10:10 -0300 Subject: [PATCH] Push tag manually The previous action did not work, it complained about not being in a git directory. Did not investigate given this is a two line command. --- .github/workflows/deploy.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8cf22d3..e7204f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -34,9 +34,10 @@ jobs: - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@v1.8.5 - - uses: actions-ecosystem/action-push-tag@v1 - with: - tag: v${{ github.event.inputs.version }} + - name: Push tag + run: | + git tag v${{ github.event.inputs.version }} ${{ github.sha }} + git push origin v${{ github.event.inputs.version }} - name: Set up Python uses: actions/setup-python@v4.5.0