Forráskód Böngészése

ci: enable manually running ci

Yujia Qiao 4 éve
szülő
commit
3780b4cf95
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      .github/workflows/release.yml

+ 4 - 0
.github/workflows/release.yml

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