-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Python Semantic Release (#3631)
* feat: added commitizen * feat: added config for commitizen * feat: added psr config * feat: add GitHub Actions workflow for semantic release
- Loading branch information
1 parent
83150a0
commit 63556ea
Showing
4 changed files
with
415 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Release with Python Semantic Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
concurrency: release | ||
|
||
env: | ||
UV_INDEX_TSD_USERNAME: ${{ secrets.UV_INDEX_TSD_USERNAME }} | ||
UV_INDEX_TSD_PASSWORD: ${{ secrets.UV_INDEX_TSD_PASSWORD }} | ||
|
||
steps: | ||
- name: Generate a token | ||
id: generate_token | ||
uses: actions/create-github-app-token@v1 | ||
with: | ||
app-id: ${{ secrets.SNAPI_APP_ID }} | ||
private-key: ${{ secrets.SNAPI_PRIVATE_KEY }} | ||
|
||
- name: Setup | Install uv | ||
uses: astral-sh/setup-uv@v3 | ||
|
||
- name: Setup | Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ steps.generate_token.outputs.token }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup | Install the dependecies and project | ||
run: | | ||
uv sync | ||
- name: Release | Run semantic-release | ||
env: | ||
GH_TOKEN: ${{ steps.generate_token.outputs.token }} | ||
run: | | ||
uv run semantic-release version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.