Skip to content

Commit

Permalink
Merge pull request #122 from Banno/update-release-actions
Browse files Browse the repository at this point in the history
Update release workflow to actions that aren't deprecated
  • Loading branch information
joshschriever committed Jul 6, 2023
2 parents 1f119f1 + e521333 commit 1f4a8f9
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Publish Release
on:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }}

jobs:
release:
name: Publish Release
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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

0 comments on commit 1f4a8f9

Please sign in to comment.