diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a615052..67f1d93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 - \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9e05d74 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 + \ No newline at end of file