Skip to content

Commit ed50d81

Browse files
authored
Add manual trigger and version input to action (#21)
1 parent 73ae0ca commit ed50d81

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
name: Package release
33

44
on: # yamllint disable-line rule:truthy
5-
push:
6-
tags:
7-
- "**"
5+
# push:
6+
# tags:
7+
# - "**"
8+
workflow_dispatch:
9+
inputs:
10+
tag:
11+
description: Tag to create
12+
required: true
13+
type: string
814

915
# Workflow jobs
1016
jobs:
@@ -30,12 +36,14 @@ jobs:
3036
./docker
3137
outPath: docker.wbm.gz
3238

39+
# Manual release
3340
# https://github.com/marketplace/actions/create-release
3441
- name: "Upload release"
3542
uses: ncipollo/release-action@v1
3643
with:
3744
artifacts: "docker.wbm.gz"
38-
tag: ${{ github.ref_name }}
45+
tag: ${{ inputs.tag }} #${{ github.ref_name }}
46+
commit: main
3947
prerelease: true
4048
draft: true
4149
generateReleaseNotes: true

0 commit comments

Comments
 (0)