Skip to content

Commit

Permalink
fix: fix build in release job (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heiko Nickerl authored Aug 2, 2021
1 parent ab96f95 commit 9664e91
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,24 @@ jobs:
message: ${{ steps.type-check.outputs.TYPE_COVERAGE }}%
color: orange
release:
runs-on: ubuntu-latest
needs: check
concurrency: release
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):')

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}

- name: Semantic Release
run: |
pip install python-semantic-release
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release publish
env:
GH_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 9664e91

Please sign in to comment.