From d8914f682a45be567148a6f63cb1481ff04a0815 Mon Sep 17 00:00:00 2001 From: rehoumir Date: Fri, 16 Aug 2024 07:49:25 +0200 Subject: [PATCH] Update python-app.yml --- .github/workflows/python-app.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index e51547c..78d7ffc 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -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 }}