Add publish

This commit is contained in:
Joel Wachsler 2022-07-10 17:23:54 +00:00
parent 9e6751612a
commit 6d336c98d8
2 changed files with 28 additions and 3 deletions

View File

@ -1,5 +1,8 @@
on: on:
- push push:
branches:
- '**'
- '!main'
jobs: jobs:
lint: lint:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -35,11 +38,9 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
components: rustfmt, clippy
- name: Run tests - name: Run tests
uses: actions-rs/cargo@v1 uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --workspace args: --workspace

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

@ -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