Skip to content

Commit fd199b1

Browse files
committed
Update ci script to generate release for tags
1 parent 2b02599 commit fd199b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
if [[ "${{ github.event.inputs.is_nightly }}" == "true" ]]; then
8484
ARTIFACT_VERSION="${ARTIFACT_VERSION}-nightly"
8585
fi
86-
ARTIFACT_NAME="${PROJECT_NAME}_${ARTIFACT_VERSION}_python-${{ matrix.python_version }}_for-SOFA-${{ matrix.sofa_branch }}_${{ runner.os }}"
86+
ARTIFACT_NAME="${PROJECT_NAME}_${ARTIFACT_VERSION}_python-${{ matrix.python_version }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
8787
echo "ARTIFACT_NAME=$ARTIFACT_NAME" | tee -a $GITHUB_ENV
8888
8989
- name: Create artifact
@@ -162,7 +162,7 @@ jobs:
162162
163163
deploy:
164164
name: Deploy artifacts
165-
if: always() && startsWith(github.ref, 'refs/heads/') # we are on a branch (not a PR)
165+
if: always() && startsWith(github.repository, 'sofa-framework') && (startsWith(github.ref, 'refs/heads/') || startsWith(github.ref, 'refs/tags/')) # we are not on a fork and on a branch or a tag (not a PR)
166166
needs: [build-and-test]
167167
runs-on: ubuntu-latest
168168
continue-on-error: true

0 commit comments

Comments
 (0)