Jelajahi Sumber

Merge pull request #1890 from lorenrh/il-222-release

Add dry run workflow to test release
Nicolas De loof 4 tahun lalu
induk
melakukan
66fa1657f5
1 mengubah file dengan 12 tambahan dan 4 penghapusan
  1. 12 4
      .github/workflows/cli-release.yaml

+ 12 - 4
.github/workflows/cli-release.yaml

@@ -1,11 +1,17 @@
 name: Releaser
 
 on:
-  push:
-    tags:
-      - "v1*"
+  workflow_dispatch:
+    inputs:
+      tag:
+        description: 'Release Tag'
+        required: true
+      dry-run:
+        description: 'Dry run'
+        required: false
+        default: 'true'
 jobs:
-  upload-release:
+  release:
     runs-on: ubuntu-latest
     steps:
       - name: Set up Go 1.16
@@ -36,7 +42,9 @@ jobs:
         run: cp packaging/* bin/
 
       - uses: ncipollo/release-action@v1
+        if: ${{ github.event.inputs.dry-run != 'true' }}
         with:
           artifacts: "bin/*"
           prerelease: true
           token: ${{ secrets.GITHUB_TOKEN }}
+          tag: ${{ github.event.inputs.tag }}