Skip to content

Commit

Permalink
update release deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alleria1809 committed Jul 12, 2024
1 parent ef3cb0f commit 68535d4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,27 @@ jobs:
with:
name: dist
path: dist
- name: List distribution files
run: |
cd dist
ls -al
- name: Publish to PyPI
run: |
cd dist
poetry publish --username __token__ --password ${{ secrets.PYPI_KEY }}
poetry publish --username __token__ --password ${{ secrets.PYPI_KEY }} --verbose
create-github-release:
needs: publish-to-pypi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check current ref
run: |
echo "Current ref: ${{ github.ref }}"
echo "Tag name: ${{ github.ref_name }}"
- name: Fetch all tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Create Release on GitHub
id: create_release
uses: actions/create-release@v1
Expand All @@ -130,6 +140,7 @@ jobs:
draft: false
prerelease: false


rollback:
needs: publish-to-pypi
if: ${{ github.event.inputs.rollback == 'true' }}
Expand Down

0 comments on commit 68535d4

Please sign in to comment.