Browse Source

Refine workflows (#464)

Loyalsoldier 5 years ago
parent
commit
63912f99ec
2 changed files with 4 additions and 6 deletions
  1. 3 1
      .github/workflows/deb.yml
  2. 1 5
      .github/workflows/release.yml

+ 3 - 1
.github/workflows/deb.yml

@@ -7,11 +7,13 @@ on:
       - v*
     paths:
       - "**/*.go"
+      - "go.mod"
+      - "go.sum"
   release:
     types: [prereleased]
 
 jobs:
-  build:
+  package:
     if: github.repository == 'v2fly/v2ray-core'
     runs-on: ubuntu-latest
     container: debian:sid

+ 1 - 5
.github/workflows/release.yml

@@ -12,19 +12,15 @@ on:
       - "**/*.go"
       - "go.mod"
       - "go.sum"
-      - ".github/workflows/*.yml"
-      - ".github/workflows/*.yaml"
   pull_request:
     types: [opened, synchronize, reopened]
     paths:
       - "**/*.go"
       - "go.mod"
       - "go.sum"
-      - ".github/workflows/*.yml"
-      - ".github/workflows/*.yaml"
 
 jobs:
-  release:
+  build:
     if: github.repository != 'v2ray/v2ray-core'
     runs-on: ubuntu-latest
     steps: