mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 07:02:28 +03:00
35 lines
686 B
YAML
35 lines
686 B
YAML
on: workflow_dispatch
|
|
|
|
name: Managment
|
|
|
|
jobs:
|
|
publish-crates:
|
|
name: Publish crates
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: |
|
|
~/.cargo/bin/
|
|
~/.cargo/registry/index/
|
|
~/.cargo/registry/cache/
|
|
~/.cargo/git/db/
|
|
target/
|
|
key: cargo-publish-crates
|
|
|
|
- name: Install cargo-mono
|
|
continue-on-error: true
|
|
run: |
|
|
cargo install cargo-mono
|
|
|
|
- name: Login
|
|
run: |
|
|
cargo login ${{ secrets.CARGO_TOKEN }}
|
|
|
|
- name: Publish crates
|
|
run: |
|
|
cargo mono publish
|