-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from Banno/update-release-actions
Update release workflow to actions that aren't deprecated
- Loading branch information
Showing
1 changed file
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,6 @@ name: Publish Release | |
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }} | ||
|
||
jobs: | ||
release: | ||
name: Publish Release | ||
|
@@ -19,8 +16,6 @@ jobs: | |
java-version: 17 | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ env.GITHUB_TOKEN }} | ||
|
||
- id: current_version | ||
uses: christian-draeger/[email protected] | ||
|
@@ -29,10 +24,11 @@ jobs: | |
properties: version | ||
|
||
- name: Create Tag | ||
uses: simpleactions/[email protected] | ||
with: | ||
tag: ${{ steps.current_version.outputs.version }} | ||
message: ${{ steps.current_version.outputs.version }} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git tag -a ${{ steps.current_version.outputs.version }} -m ${{ steps.current_version.outputs.version }} | ||
git push origin ${{ steps.current_version.outputs.version }} | ||
- name: Create Release | ||
uses: ncipollo/[email protected] | ||
|
@@ -50,20 +46,22 @@ jobs: | |
arguments: publishPlugins | ||
|
||
- id: next_version | ||
uses: jessicalostinspace/bump-semantic-version[email protected] | ||
uses: christian-draeger/increment-semantic-version@1.1.0 | ||
with: | ||
semantic-version: ${{ steps.current_version.outputs.version }} | ||
version-type: PATCH | ||
current-version: ${{ steps.current_version.outputs.version }} | ||
version-fragment: bug | ||
|
||
- name: Bump Version | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: gordon-plugin/gradle.properties | ||
property: version | ||
value: ${{steps.next_version.outputs.bumped-semantic-version}} | ||
value: ${{ steps.next_version.outputs.next-version }} | ||
|
||
- name: Commit Version Bump | ||
uses: EndBug/[email protected] | ||
with: | ||
add: gordon-plugin/gradle.properties | ||
message: Bump version to ${{steps.next_version.outputs.bumped-semantic-version}} | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add gordon-plugin/gradle.properties | ||
git commit -m "Bump version to ${{ steps.next_version.outputs.next-version }}" | ||
git push |