Browse Source

Update release.yml

lemoes 4 years ago
parent
commit
7e56bcd809
1 changed files with 11 additions and 7 deletions
  1. 11 7
      .github/workflows/release.yml

+ 11 - 7
.github/workflows/release.yml

@@ -1,14 +1,18 @@
 name: Release
 
+# Controls when the workflow will run
 on:
-  workflow_dispatch:
+  # Triggers the workflow on push or pull request events but only for the main branch
+  push:
+    branches: [ main ]
+    #tags:
+    #  - '*'
+  pull_request:
+    branches: [ main ]
   release:
     types: [published]
-  push:
-    #branches:
-    #  - main
-    tags:
-      - '*'
+  # Allows you to run this workflow manually from the Actions tab
+  workflow_dispatch:
 
 jobs:
   build:
@@ -84,4 +88,4 @@ jobs:
         with:
           files: ./oci-help-${{ steps.get_filename.outputs.ASSET_NAME }}.zip*
           #draft: true
-          #prerelease: true
+          #prerelease: true