update ci

added automatic release pipeline
This commit is contained in:
red 2021-02-07 18:39:41 +01:00
parent eac1c9c6e9
commit 721eaa7d01
2 changed files with 35 additions and 3 deletions

View File

@ -7,11 +7,14 @@ jobs:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- name: Checkout source
uses: actions/checkout@v2
- name: Get Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions-rs/cargo@v1
- name: Cargo Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features

29
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,29 @@
name: CI
on: [release]
jobs:
build_and_test:
name: Rust project
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Get Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Cargo Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Cargo Login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CARGO_TOKEN }}
- name: Cargo Publish
uses: actions-rs/cargo@v1
with:
command: publish