Skip to content

Commit cc12498

Browse files
authored
Update release.yml
1 parent 5c07bdc commit cc12498

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: Create and publish a Docker image
1+
name: release
22

33
on:
4-
push:
5-
branches: ['main']
6-
release:
7-
types: [published]
4+
workflow_dispatch:
5+
inputs:
6+
tagName:
7+
description: 'Name to tag this release'
8+
required: true
89

910
env:
1011
REGISTRY: ghcr.io
@@ -41,3 +42,18 @@ jobs:
4142
push: true
4243
tags: ${{ steps.meta.outputs.tags }}
4344
labels: ${{ steps.meta.outputs.labels }}
45+
46+
- name: Get result
47+
run: |
48+
echo "The result is ${{ github.event.inputs.tagName }}"
49+
50+
- name: Publish Release
51+
uses: "marvinpinto/action-automatic-releases@latest"
52+
with:
53+
repo_token: "${{ secrets.GH_TOKEN }}"
54+
automatic_release_tag: "${{ github.event.inputs.tagName }}"
55+
prerelease: false
56+
title: "${{ github.event.inputs.tagName }}"
57+
files: |
58+
LICENSE.txt
59+
*.jar

0 commit comments

Comments
 (0)