Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Commit

Permalink
Change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fido-node committed Dec 28, 2023
1 parent 7d5a995 commit 219e83d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ jobs:
- name: Install Protoc
uses: arduino/setup-protoc@v2


publish-cargo:
runs-on: self-hosted
needs: setup
steps:
- name: Set version
run: BUILD_VERSION="${{ github.ref_name }}" awk -i inplace '/^version/ {sub(/^v/, "", ENVIRON["BUILD_VERSION"]); print "version = \"" ENVIRON["BUILD_VERSION"] "\""; next} 1' Cargo.toml
run: BUILD_VERSION="${{ github.ref_name }}" gawk -i inplace '/^version/ {sub(/^v/, "", ENVIRON["BUILD_VERSION"]); print "version = \"" ENVIRON["BUILD_VERSION"] "\""; next} 1' Cargo.toml
- name: Publish to cargo
run: cargo publish --allow-dirty --token ${{ secrets.CARGO_LOGIN }}

Expand Down

0 comments on commit 219e83d

Please sign in to comment.