2022-07-10 19:23:54 +02:00
|
|
|
on:
|
|
|
|
push:
|
2022-07-10 20:19:29 +02:00
|
|
|
tags:
|
2022-07-10 20:21:10 +02:00
|
|
|
- '[0-9]+.[0-9]+.[0-9]+'
|
2022-07-10 19:23:54 +02:00
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-07-10 20:09:08 +02:00
|
|
|
|
|
|
|
- name: Verify version
|
|
|
|
run: ./.github/verify_version.sh
|
|
|
|
|
2022-07-10 19:23:54 +02:00
|
|
|
- name: Install latest stable
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
|
2022-07-10 19:35:23 +02:00
|
|
|
- name: Login
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: login
|
2022-07-10 19:37:54 +02:00
|
|
|
args: ${{ secrets.CRATES_IO_TOKEN }}
|
2022-07-10 19:35:23 +02:00
|
|
|
|
2022-07-10 19:23:54 +02:00
|
|
|
- name: Publish qbittorrent-web-api-gen
|
2022-07-10 19:42:24 +02:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: publish
|
|
|
|
args: --package qbittorrent-web-api-gen
|
|
|
|
|
|
|
|
- name: Publish qbittorrent-web-api
|
2022-07-10 19:23:54 +02:00
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
with:
|
|
|
|
command: publish
|