Skip to content

Commit

Permalink
ci(release): try to make dev snapshots have different package name an…
Browse files Browse the repository at this point in the history
…d number
  • Loading branch information
poikilotherm committed Dec 13, 2023
1 parent 339dd2e commit abaf3d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ jobs:
run: >-
python3 -m
pip install
build
build toml-cli
--user
- name: Reset package name and version for dev snaps
if: github.ref_name == 'develop' || github.ref_name == 'feature/186-pypi-release'
run: |
toml set --toml-path pyproject.toml tool.poetry.name hermes-test
VERSION=$(toml get --toml-path pyproject.toml tool.poetry.version)
toml set --toml-path pyproject.toml tool.poetry.version "$VERSION.dev${{ github.run_number }}"
- name: Build a binary wheel and a source tarball
run: python3 -m build
- name: Store the distribution packages
Expand Down

0 comments on commit abaf3d6

Please sign in to comment.