Skip to content

Commit a0cf9c2

Browse files
Adicionado action deploy
1 parent f7f2c7f commit a0cf9c2

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

.github/workflows/release-maven.yml

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@ name: Liberar nova versão Maven
22

33
on:
44
workflow_dispatch:
5-
inputs:
6-
version:
7-
description: 'Release version'
8-
required: true
9-
type: string
5+
push:
6+
tags:
7+
- '4.*'
108

119
jobs:
1210
release:
@@ -87,18 +85,4 @@ jobs:
8785
export GPG_TTY=$(tty)
8886
git config user.name "github-actions[bot]"
8987
git config user.email "github-actions[bot]@users.noreply.github.com"
90-
mvn deploy -B --no-transfer-progress
91-
92-
- name: Create GitHub Release
93-
if: success()
94-
uses: softprops/action-gh-release@v2
95-
with:
96-
tag_name: v${{ env.RELEASE_VERSION }}
97-
name: Release v${{ env.RELEASE_VERSION }}
98-
body_path: CHANGELOG.md
99-
draft: false
100-
prerelease: false
101-
files: |
102-
target/paf-nfce-${{ env.RELEASE_VERSION }}.jar
103-
target/paf-nfce-${{ env.RELEASE_VERSION }}-sources.jar
104-
target/paf-nfce-${{ env.RELEASE_VERSION }}-javadoc.jar
88+
mvn deploy -B --no-transfer-progress

0 commit comments

Comments
 (0)