Skip to content

Commit c2f5a3b

Browse files
authored
Release: CI Hotfix (#2536)
- check `rc` version in CI for `relase-candidate`
2 parents 47b3590 + aec51bf commit c2f5a3b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ jobs:
6767
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
6868
with:
6969
python-version: '3.13'
70+
- name: Check Candidate Version
71+
if: github.ref != 'refs/heads/main'
72+
run: python -c "from trimesh.version import __version__ as v; assert 'rc' in v.split('.')[2]"
7073
- name: Install publishing dependencies
7174
run: pip install build
7275
- name: Build
@@ -75,6 +78,7 @@ jobs:
7578
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0
7679

7780
containers:
81+
if: github.ref == 'refs/heads/main'
7882
name: Build Docker Images
7983
runs-on: ubuntu-latest
8084
permissions:
@@ -133,6 +137,7 @@ jobs:
133137
run: python tests/corpus.py -run
134138

135139
release:
140+
if: github.ref == 'refs/heads/main'
136141
permissions:
137142
contents: write # for creating releases
138143
name: Create GitHub Release

0 commit comments

Comments
 (0)