Skip to content

Commit

Permalink
Merge branch 'main' into febo/token-2022
Browse files Browse the repository at this point in the history
  • Loading branch information
febo committed Sep 8, 2023
2 parents dab89a1 + ec7f026 commit 93d2cbf
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 168 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-token-metadata version ${{ env.PROGRAM_VERSION }}"
tagging_message: mpl-token-metadata@v${{ env.PROGRAM_VERSION }}
178 changes: 13 additions & 165 deletions clients/rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mpl-token-metadata"
version = "2.0.0"
version = "3.0.0"
description = "Metaplex Token Metadata SDK"
authors = ["Metaplex Developers <[email protected]>"]
repository = "https://github.com/metaplex-foundation/mpl-token-metadata"
Expand Down

0 comments on commit 93d2cbf

Please sign in to comment.