Skip to content

Commit

Permalink
tagging releases
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidsec committed Oct 9, 2024
1 parent e5e2838 commit a7f3ebd
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,13 @@ jobs:
if: github.ref == 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1.5
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Get current version from Poetry
id: get_version
run: echo "::set-output name=VERSION::$(poetry version --short)"
- name: Create Git tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -a "v$(echo ${{ steps.get_version.outputs.VERSION }})" -m "Release v${{ steps.get_version.outputs.VERSION }}"
git push origin "v$(echo ${{ steps.get_version.outputs.VERSION }})"

0 comments on commit a7f3ebd

Please sign in to comment.