Skip to content

Commit

Permalink
Fix GitHub publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Krivosheev committed Sep 24, 2021
1 parent ba71254 commit 7f76190
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/maven-publish-package-on-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and publish package to GitHub Packages
name: Build and publish artifact

on:
release:
Expand Down Expand Up @@ -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

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>com.acme.banking</groupId>
<artifactId>dbo-app</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
Expand Down

0 comments on commit 7f76190

Please sign in to comment.