Skip to content

Commit

Permalink
fix: ci (#15)
Browse files Browse the repository at this point in the history
* fix: ci

* fix: ci
  • Loading branch information
Lash-L authored Jul 17, 2024
1 parent 086c270 commit 3368fd9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,13 @@ jobs:
release:
runs-on: ubuntu-latest
environment: release
if: github.ref == 'refs/heads/main'
needs:
- test
- lint
- commitlint

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -83,7 +82,13 @@ jobs:
# - Create GitHub release
# - Publish to PyPI
- name: Python Semantic Release
uses: relekang/[email protected]
uses: relekang/[email protected]
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
- name: Test release
uses: python-semantic-release/[email protected]
if: github.ref_name != 'main'
with:
additional_options: --noop

0 comments on commit 3368fd9

Please sign in to comment.