Skip to content

Commit

Permalink
EWT-441: Auto publish public rust signing crate (#284)
Browse files Browse the repository at this point in the history
* EWT-441: Auto publish public rust signing crate

Signed-off-by: suryapandian <surya.pandian@truelayer.com>

* set working directory and rename

Signed-off-by: suryapandian <surya.pandian@truelayer.com>

* run only on push to main

Signed-off-by: suryapandian <surya.pandian@truelayer.com>

---------

Signed-off-by: suryapandian <surya.pandian@truelayer.com>
Co-authored-by: Alessandro Zanin <ale.zanin90@gmail.com>
  • Loading branch information
suryapandian and azanin authored May 24, 2024
1 parent e84df3e commit 9a874e7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,22 @@ jobs:
- run: rustup update stable
- uses: actions/checkout@v4
- run: cargo check --manifest-path=rust/examples/webhook-server/Cargo.toml

publish:
name: Rust Release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/release-plz-action@v0.5
working-directory: ./rust
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 9a874e7

Please sign in to comment.