mirror of
https://github.com/spacemeowx2/blflash.git
synced 2024-09-03 13:09:01 +00:00
37 lines
955 B
YAML
37 lines
955 B
YAML
on:
|
|
push:
|
|
tags:
|
|
- 'v*.*.*'
|
|
|
|
name: Publish
|
|
|
|
jobs:
|
|
publish:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Cache Cargo
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cargo
|
|
key: ubuntu-latest-stable-cargo-v1
|
|
restore-keys: |
|
|
ubuntu-latest-stable-cargo-v1
|
|
- name: Setup toolchain
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
override: true
|
|
- name: cargo publish blflash
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: publish
|
|
args: --manifest-path blflash/Cargo.toml --token ${{ secrets.CRATES_IO_TOKEN }}
|
|
- name: cargo publish cargo-blflash
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: publish
|
|
args: --manifest-path cargo-blflash/Cargo.toml --token ${{ secrets.CRATES_IO_TOKEN }}
|