Skip to content

Commit 8d8f510

Browse files
authored
[CI] enable tag release (#412)
* [CI] enable tag release * FIX commit
1 parent 32e66f4 commit 8d8f510

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 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
@@ -209,7 +209,7 @@ jobs:
209209
name: ${{ env.RELEASE_NAME }}
210210
tag_name: ${{ env.RELEASE_TAGNAME }}
211211
fail_on_unmatched_files: false
212-
target_commitish: ${{ env.BRANCH_NAME }}
212+
target_commitish: ${{ github.sha }}
213213
body: |
214214
Last updated on ${{ env.RELEASE_DATE }}
215215
files: |

0 commit comments

Comments
 (0)