ci: publish to crates.io

This commit is contained in:
Yujia Qiao 2022-01-12 21:06:29 +08:00 committed by GitHub
parent 7a7eef11bc
commit d4de47716c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 0 deletions

View File

@ -99,6 +99,7 @@ jobs:
files: target/${{ matrix.target }}/release/rathole-${{ matrix.target }}.zip
generate_release_notes: true
docker:
name: Publish to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
@ -114,3 +115,16 @@ jobs:
with:
push: true
tags: rapiz1/rathole:latest, rapiz1/rathole:${{ github.ref_name }}
publish-crate:
name: Publish to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }}
run: cargo publish