diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 96ae774..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Publish - -on: - release: - types: - - created - -jobs: - publish: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - - steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-java@v4 - with: - java-version: '11' - distribution: 'zulu' - - - uses: gradle/actions/setup-gradle@v4 # v4.0.0 - - - 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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f6316d9..dffea42 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,14 @@ 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: @@ -40,3 +48,6 @@ jobs: release_name: ${{ steps.changelog.outputs.tag }} body: ${{ steps.changelog.outputs.clean_changelog }} make_latest: 'true' + files: | + build/libs/*.jar + build/packageCompose/*.zip