Skip to content

Commit

Permalink
ci: separate jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Aug 28, 2021
1 parent 67dca07 commit 515f2aa
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master

jobs:
release:
tests:
runs-on: ubuntu-latest
concurrency: release

Expand All @@ -33,6 +33,19 @@ jobs:
- name: Test with pytest
run: poetry run pytest

release:
needs: tests
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
Expand Down

0 comments on commit 515f2aa

Please sign in to comment.