Skip to content

Commit

Permalink
Automate setting the right release version
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmervdl committed Jan 7, 2024
1 parent 3284f3a commit 4d8cff3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
with:
name: frontend
path: frontend/dist

- name: Set version number
if: startsWith(github.ref, 'refs/tags/v')
run: echo "VERSION = \"${GITHUB_REF_NAME:1}\"" > opuscleaner/__about__.py

- name: Build sdist
run: pipx run build --sdist
Expand Down Expand Up @@ -92,6 +96,10 @@ jobs:
name: frontend
path: frontend/dist

- name: Set version number
if: startsWith(github.ref, 'refs/tags/v')
run: echo "VERSION = \"${GITHUB_REF_NAME:1}\"" > opuscleaner/__about__.py

- name: Build wheels
run: python -m pip wheel -w wheelhouse .

Expand Down
2 changes: 1 addition & 1 deletion opuscleaner/__about__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.3.1"
VERSION = "main"

0 comments on commit 4d8cff3

Please sign in to comment.