-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add CI release automation (#392)
Resolves #391
- Loading branch information
Showing
13 changed files
with
165 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: publish motsu-proc | ||
# This workflow publishes motsu-proc on crates.io. | ||
permissions: | ||
contents: read | ||
on: | ||
workflow_dispatch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
check-publish: | ||
name: Publish motsu-proc on crates.io | ||
env: | ||
MOTSU_PROC_TOKEN: ${{ secrets.MOTSU_PROC_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 motsu-proc | ||
run: cargo publish -p motsu-proc --dry-run | ||
|
||
- name: Publish motsu-proc | ||
run: cargo publish -p motsu-proc --token $MOTSU_PROC_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: publish motsu | ||
# This workflow publishes motsu on crates.io. | ||
permissions: | ||
contents: read | ||
on: | ||
workflow_dispatch | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
env: | ||
CARGO_TERM_COLOR: always | ||
jobs: | ||
check-publish: | ||
name: Publish motsu on crates.io | ||
env: | ||
MOTSU_TOKEN: ${{ secrets.MOTSU_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 motsu | ||
run: cargo publish -p motsu --dry-run | ||
|
||
- name: Publish motsu | ||
run: cargo publish -p motsu --token $MOTSU_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: publish openzeppelin-crypto | ||
# This workflow publishes openzeppelin-crypto on crates.io. | ||
permissions: | ||
contents: read | ||
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-crypto on crates.io | ||
env: | ||
OPENZEPPELIN_CRYPTO_TOKEN: ${{ secrets.OPENZEPPELIN_CRYPTO_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-crypto | ||
run: cargo publish -p openzeppelin-crypto --target wasm32-unknown-unknown --dry-run | ||
|
||
- name: Publish openzeppelin-crypto | ||
run: cargo publish -p openzeppelin-crypto --target wasm32-unknown-unknown --token $OPENZEPPELIN_CRYPTO_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: publish openzeppelin-stylus-proc | ||
# This workflow publishes openzeppelin-stylus-proc on crates.io. | ||
permissions: | ||
contents: read | ||
on: | ||
workflow_dispatch | ||
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-proc on crates.io | ||
env: | ||
OPENZEPPELIN_STYLUS_PROC_TOKEN: ${{ secrets.OPENZEPPELIN_STYLUS_PROC_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-proc | ||
run: cargo publish -p openzeppelin-stylus-proc --target wasm32-unknown-unknown --dry-run | ||
|
||
- name: Publish openzeppelin-stylus-proc | ||
run: cargo publish -p openzeppelin-stylus-proc --target wasm32-unknown-unknown --token $OPENZEPPELIN_STYLUS_PROC_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: publish openzeppelin-stylus | ||
# This workflow publishes openzeppelin-stylus on crates.io. | ||
permissions: | ||
contents: read | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters