Skip to content

Commit

Permalink
feat: CI job for publishing motsu-proc
Browse files Browse the repository at this point in the history
  • Loading branch information
bidzyyys committed Nov 4, 2024
1 parent 269f63a commit 0cbd2d2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-motsu-proc.yml
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"

0 comments on commit 0cbd2d2

Please sign in to comment.