Skip to content

Commit dcb53e0

Browse files
committed
updated action for package and release
1 parent f8a2f65 commit dcb53e0

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/publish-package.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: Publish package to GitHub Packages
22
on:
33
push:
4-
branches:
5-
- main
6-
workflow_dispatch: # manual trigger
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
76

87
jobs:
98
publish-package:

.github/workflows/publish-release.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Publish Build to Github Releases
2-
32
on:
43
push:
5-
branches:
6-
- main
7-
workflow_dispatch: # manual trigger
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+'
86

97
jobs:
108
publish-release:
@@ -25,13 +23,13 @@ jobs:
2523
- name: Build with Gradle
2624
run: ./gradlew build
2725
- name: Release
28-
uses: "marvinpinto/action-automatic-releases@latest"
26+
uses: softprops/action-gh-release@v2
2927
with:
30-
repo_token: "${{ secrets.GITHUB_TOKEN }}"
31-
# automatic_release_tag: "${{ steps.date.outputs.NOW }}"
32-
automatic_release_tag: "latest"
28+
token: "${{ secrets.GITHUB_TOKEN }}"
29+
name: "org.dynapi:openapispec ${{ github.ref_name }}"
30+
generate_release_notes: true
3331
draft: false
3432
prerelease: false
35-
title: "org.dynapi:openapispec"
33+
make_latest: true
3634
files: |
3735
build/libs/*

0 commit comments

Comments
 (0)