Skip to content

Commit

Permalink
feat(crates-io): publish gstd and gear-wasm-builder (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
clearloop authored Dec 5, 2023
1 parent 1daf3d6 commit 37fba1c
Show file tree
Hide file tree
Showing 20 changed files with 625 additions and 293 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/crates-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ name: Crates IO

on:
workflow_dispatch:
inputs:
publish:
description: "If publish packages"
type: boolean
default: false
pull_request:
branches: [master]

env:
CARGO_INCREMENTAL: 0
Expand All @@ -10,7 +17,7 @@ env:
TERM: xterm-256color

jobs:
publish:
check:
runs-on: ubuntu-latest
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand All @@ -21,5 +28,9 @@ jobs:
- name: "Install: Rust toolchain"
uses: dsherret/rust-toolchain-file@v1

- name: "Check packages"
run: cargo run --release -p crates-io-manager check

- name: "Publish packages"
run: cargo run --release -p crates-io-manager
if: ${{ github.event_name == 'workflow_dispatch' && inputs.publish }}
run: cargo run --release -p crates-io-manager publish
Loading

0 comments on commit 37fba1c

Please sign in to comment.