Skip to content

Commit

Permalink
Add semantic release support (#22)
Browse files Browse the repository at this point in the history
* basic setup

* token name
  • Loading branch information
Xmaster6y authored Apr 30, 2024
1 parent ed66d40 commit 8de7329
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Semantic Release

on:
push:
branches:
- main

jobs:
release:
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.GH_TOKEN }}
96 changes: 95 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ einops = "^0.7.0"
torchvision = "^0.17.0"
datasets = {version = "^2.18.0", extras = ["scripts"]}
wandb = {version = "^0.16.5", extras = ["scripts"]}
python-semantic-release = "^9.6.0"

[tool.poetry.group.dev]
optional = true
Expand Down Expand Up @@ -62,3 +63,10 @@ datasets = "^2.18.0"
wandb = "^0.16.5"
loguru = "^0.7.2"
scikit-learn = "^1.4.2"

[tool.semantic_release]
commit_message = "{version}"
tag_format = "v{version}"

[tool.semantic_release.branches.main]
match = "main"

0 comments on commit 8de7329

Please sign in to comment.