ci: enable manually running ci

This commit is contained in:
Yujia Qiao 2022-01-21 23:05:23 +08:00
parent 694363fd60
commit 3780b4cf95
No known key found for this signature in database
GPG Key ID: DC129173B148701B
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@ on:
tags: tags:
- '*' - '*'
workflow_dispatch:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -108,6 +110,7 @@ jobs:
draft: true draft: true
docker: docker:
name: Publish to Docker Hub name: Publish to Docker Hub
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release needs: release
steps: steps:
@ -126,6 +129,7 @@ jobs:
tags: rapiz1/rathole:latest, rapiz1/rathole:${{ github.ref_name }} tags: rapiz1/rathole:latest, rapiz1/rathole:${{ github.ref_name }}
publish-crate: publish-crate:
name: Publish to crates.io name: Publish to crates.io
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release needs: release
steps: steps: