Skip to content

Commit

Permalink
Fix tagging step
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Sep 28, 2023
1 parent 5372089 commit d1dc727
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/deploy-rust-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
with:
cache: ${{ env.CACHE }}

- name: Publish Crate
- name: Publish crate
working-directory: ./clients/rust
run: |
if [ "${{ inputs.level }}" == "version" ]; then
Expand All @@ -82,10 +82,24 @@ jobs:
fi
if [ "${{ inputs.dry_run }}" == "false" ]; then
OPTIONS="--no-publish --no-confirm --execute"
OPTIONS="--no-push --no-tag --no-confirm --execute"
git config user.name ${{ env.COMMIT_USER_NAME }}
git config user.email ${{ env.COMMIT_USER_EMAIL }}
fi
cargo login ${{ secrets.CRATES_TOKEN }}
cargo release $BUMP $OPTIONS
if [ "${{ inputs.dry_run }}" == "false" ]; then
git reset --soft HEAD~1
fi
PROGRAM_VERSION=`grep -E '^version\s*=' Cargo.toml | awk -F '"' '{print $2}'`
echo PROGRAM_VERSION="${PROGRAM_VERSION}" >> $GITHUB_ENV
- name: Commit and tag new version
uses: stefanzweifel/git-auto-commit-action@v4
if: github.event.inputs.dry_run == 'false'
with:
commit_message: "chore: Release mpl-bubblegum version ${{ env.PROGRAM_VERSION }}"
tagging_message: mpl-bubblegum@v${{ env.PROGRAM_VERSION }}

0 comments on commit d1dc727

Please sign in to comment.