mirror of https://github.com/rapiz1/rathole.git
ci: publish to crates.io
This commit is contained in:
parent
7a7eef11bc
commit
d4de47716c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue