From f1e56a57ac9d0210b5e3258ae71d63950c5598d1 Mon Sep 17 00:00:00 2001 From: Oskar Hollmann Date: Fri, 31 Mar 2023 15:48:37 +0200 Subject: [PATCH] chore: fix semantic release --- .github/workflows/test-and-deploy.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-and-deploy.yaml b/.github/workflows/test-and-deploy.yaml index abe1400..dcb9acd 100644 --- a/.github/workflows/test-and-deploy.yaml +++ b/.github/workflows/test-and-deploy.yaml @@ -32,9 +32,10 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 + token: ${{ secrets.PUBLISH_TOKEN }} - name: Semantic release - run: | - git config --global user.name "semantic-release (via GitHub Actions)" - git config --global user.email "semantic-release@github" - pip install python-semantic-release - semantic-release publish + 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 }}