mirror of https://github.com/Trivernis/bromine.git
Add publish github action
Signed-off-by: trivernis <trivernis@protonmail.com>pull/10/head
parent
6509b6619d
commit
b1f0ad5131
@ -0,0 +1,26 @@
|
||||
name: Publish a release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --verbose
|
||||
|
||||
- name: Login
|
||||
with:
|
||||
crates_io_token: ${{secrets.CRATES_IO_TOKEN}}
|
||||
run: cargo login
|
||||
|
||||
- name: Publish to crates.io
|
||||
run: cargo publish
|
Loading…
Reference in New Issue