2021-10-06 07:36:02 +03:00
|
|
|
on: workflow_dispatch
|
|
|
|
|
2021-10-07 10:07:55 +03:00
|
|
|
name: Managment
|
2021-10-06 07:36:02 +03:00
|
|
|
|
|
|
|
jobs:
|
2021-10-07 10:07:55 +03:00
|
|
|
publish-crates:
|
|
|
|
name: Publish crates
|
2021-10-06 07:36:02 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-10-07 10:07:55 +03:00
|
|
|
- uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cargo/bin/
|
|
|
|
~/.cargo/registry/index/
|
|
|
|
~/.cargo/registry/cache/
|
|
|
|
~/.cargo/git/db/
|
|
|
|
target/
|
|
|
|
key: cargo-publish-crates
|
|
|
|
|
2021-10-06 07:36:02 +03:00
|
|
|
- name: Install cargo-mono
|
2021-10-07 10:07:55 +03:00
|
|
|
continue-on-error: true
|
2021-10-06 07:36:02 +03:00
|
|
|
run: |
|
|
|
|
cargo install cargo-mono
|
|
|
|
|
|
|
|
- name: Login
|
|
|
|
run: |
|
|
|
|
cargo login ${{ secrets.CARGO_TOKEN }}
|
|
|
|
|
|
|
|
- name: Publish crates
|
|
|
|
run: |
|
|
|
|
cargo mono publish
|