swc/.github/workflows/crate-publish.yml

35 lines
686 B
YAML
Raw Normal View History

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