Skip to content

Commit

Permalink
Update python-app.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rehoumir authored Aug 16, 2024
1 parent 5ac751e commit d8914f6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,18 @@ jobs:
TARGET_USERNAME: ${{secrets.TARGET_USERNAME}}
TARGET_PASSWORD: ${{secrets.TARGET_PASSWORD}}
run: pytest tests
deploy:
runs-on: ubuntu-latest
needs: build-and-test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PUBLISH_TOKEN }}
- name: Semantic release
uses: relekang/python-semantic-release@master
with:
# Personal Access Token that belongs to an admin of the repo must
# be set in PUBLISH_TOKEN secret to bypass `main` branch protection
github_token: ${{ secrets.PUBLISH_TOKEN }}

0 comments on commit d8914f6

Please sign in to comment.