From 7f76190475c0e8f1874c1be61b28b028a773d473 Mon Sep 17 00:00:00 2001 From: Eugene Krivosheev Date: Fri, 24 Sep 2021 23:28:24 +0300 Subject: [PATCH] Fix GitHub publish. --- .../workflows/maven-publish-package-on-release.yml | 14 ++++++++++---- pom.xml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish-package-on-release.yml b/.github/workflows/maven-publish-package-on-release.yml index 075675d..bb5093a 100644 --- a/.github/workflows/maven-publish-package-on-release.yml +++ b/.github/workflows/maven-publish-package-on-release.yml @@ -1,4 +1,4 @@ -name: Build and publish package to GitHub Packages +name: Build and publish artifact on: release: @@ -29,7 +29,13 @@ jobs: - run: mvn --batch-mode --errors --debug clean verify - - uses: actions/upload-artifact@v2 + - uses: actions/upload-release-asset@v2 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: jar - path: target/*.jar + asset_path: target/dbo-app-*.jar + asset_name: dbo-app.jar + tag: ${{ github.ref }} + overwrite: true + asset_content_type: application/java-archive + diff --git a/pom.xml b/pom.xml index 46e0c75..e11dca3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.acme.banking dbo-app - 1.0.0 + 1.0.1 jar org.springframework.boot