Skip to content

Commit

Permalink
fix: releases depends on test, config pyproject.toml for semantic rel…
Browse files Browse the repository at this point in the history
…ease
  • Loading branch information
pquadri committed Mar 27, 2024
1 parent 6a248e0 commit 404a9a4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 24 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,21 @@ jobs:

- name: Run tests
run: poetry run pytest

release:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write

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

- name: Python Semantic Release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/release.yml

This file was deleted.

3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ pytest = "^8.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]

0 comments on commit 404a9a4

Please sign in to comment.