Skip to content

Commit

Permalink
fix(meta): consolidate release and publish into a single workflow
Browse files Browse the repository at this point in the history
to avoid having to use an access token to trigger the publish step from an action
  • Loading branch information
sabberworm committed Oct 17, 2024
1 parent 1a36d2c commit 1ac4754
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/publish.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,21 @@ jobs:
skip-version-file: true
skip-on-empty: false

- uses: gradle/actions/setup-gradle@v4

- name: Publish to GitHub Packages
run: ./gradlew publish -Prelease.useLastTag=true
env:
ORG_GRADLE_PROJECT_mavenPublishUser: ${{ github.actor }}
ORG_GRADLE_PROJECT_mavenPublishPassword: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.changelog.outputs.tag }}
release_name: ${{ steps.changelog.outputs.tag }}
body: ${{ steps.changelog.outputs.clean_changelog }}
make_latest: 'true'
files: |
build/libs/*.jar
build/packageCompose/*.zip

0 comments on commit 1ac4754

Please sign in to comment.