Skip to content

Commit

Permalink
used tag name not release name
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Hussey authored and Arthur Hussey committed Sep 10, 2024
1 parent c5779d4 commit 303ba76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Update version
run: |
echo "__version__ = \"${{ github.event.release.name }}\"" > orb_models/__init__.py
echo "__version__ = \"${{ github.event.release.tag_name }}\"" > orb_models/__init__.py
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -48,7 +49,7 @@ jobs:
cache-dependency-path: pyproject.toml
- name: Update version
run: |
echo "__version__ = \"${{ github.event.release.name }}\"" > orb_models/__init__.py
echo "__version__ = \"${{ github.event.release.tag_name }}\"" > orb_models/__init__.py
- name: Install dependencies
run: |
pip install setuptools wheel build
Expand Down

0 comments on commit 303ba76

Please sign in to comment.