Skip to content

Commit

Permalink
build: add CI job to publish openzeppelin-stylus to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Nov 4, 2024
1 parent 365d004 commit b1bdae8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-openzeppelin-stylus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish openzeppelin-stylus
# This workflow publishes openzeppelin-stylus on crates.io.
permissions:
contents: read
on:
on:
push:
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
check-publish:
name: Publish openzeppelin-stylus on crates.io
env:
OPENZEPPELIN_STYLUS_TOKEN: ${{ secrets.OPENZEPPELIN_STYLUS_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
rustflags: ""

- name: Check openzeppelin-stylus
run: cargo publish -p openzeppelin-stylus --target wasm32-unknown-unknown --dry-run

- name: Publish openzeppelin-stylus
run: cargo publish -p openzeppelin-stylus --target wasm32-unknown-unknown --token $OPENZEPPELIN_STYLUS_TOKEN

0 comments on commit b1bdae8

Please sign in to comment.