Skip to content

Commit

Permalink
refactor env in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshschriever committed May 8, 2023
1 parent 8ea0963 commit 9054a1e
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish Release
on:
workflow_dispatch:

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

jobs:
release:
name: Publish Release
Expand All @@ -16,8 +19,6 @@ jobs:
java-version: 17

- uses: actions/checkout@v3
with:
token: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }}

- id: current_version
uses: christian-draeger/read-properties@1.1.1
Expand All @@ -27,16 +28,12 @@ jobs:

- name: Create Tag
uses: simpleactions/create-tag@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.current_version.outputs.version }}
message: ${{ steps.current_version.outputs.version }}

- name: Create Release
uses: ncipollo/release-action@v1.12.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag: ${{ steps.current_version.outputs.version }}
generateReleaseNotes: true
Expand Down Expand Up @@ -65,8 +62,6 @@ jobs:

- name: Commit Version Bump
uses: EndBug/add-and-commit@v9.1.1
env:
GITHUB_TOKEN: ${{ secrets.BANNO_AUTOBOT_GITHUB_TOKEN }}
with:
add: gordon-plugin/gradle.properties
message: Bump version to ${{steps.next_version.outputs.bumped-semantic-version}}

0 comments on commit 9054a1e

Please sign in to comment.