Add publish
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
on:
|
||||
- push
|
||||
push:
|
||||
branches:
|
||||
- '**'
|
||||
- '!main'
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-22.04
|
||||
@@ -35,11 +38,9 @@ jobs:
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy
|
||||
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
args: --workspace
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install latest stable
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Publish qbittorrent-web-api-gen
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: publish
|
||||
|
||||
# - name: Publish qbittorrent-web-api
|
||||
# uses: actions-rs/cargo@v1
|
||||
# with:
|
||||
# command: publish
|
||||
|
||||
Reference in New Issue
Block a user