Skip to content

Commit

Permalink
Update ci script to generate release for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
bakpaul committed Mar 28, 2024
1 parent 2b02599 commit fd199b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ jobs:
if [[ "${{ github.event.inputs.is_nightly }}" == "true" ]]; then
ARTIFACT_VERSION="${ARTIFACT_VERSION}-nightly"
fi
ARTIFACT_NAME="${PROJECT_NAME}_${ARTIFACT_VERSION}_python-${{ matrix.python_version }}_for-SOFA-${{ matrix.sofa_branch }}_${{ runner.os }}"
ARTIFACT_NAME="${PROJECT_NAME}_${ARTIFACT_VERSION}_python-${{ matrix.python_version }}_for-SOFA-${{ steps.sofa.outputs.sofa_version }}_${{ runner.os }}"
echo "ARTIFACT_NAME=$ARTIFACT_NAME" | tee -a $GITHUB_ENV
- name: Create artifact
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
deploy:
name: Deploy artifacts
if: always() && startsWith(github.ref, 'refs/heads/') # we are on a branch (not a PR)
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)
needs: [build-and-test]
runs-on: ubuntu-latest
continue-on-error: true
Expand Down

0 comments on commit fd199b1

Please sign in to comment.