Skip to content

Commit

Permalink
fix jar name
Browse files Browse the repository at this point in the history
  • Loading branch information
kichik committed Jun 24, 2020
1 parent 78ff21f commit 8cc35c7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ jobs:
name: Publish
steps:
- uses: actions/checkout@v2
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Publish package
run: |
mvn -B versions:set -DnewVersion=${{ github.ref }}
mvn -B versions:set -DnewVersion=${{ steps.get_version.outputs.VERSION }}
mvn -B package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -36,8 +39,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
body: "" # TODO get git commit messages here automatically
draft: true
prerelease: false
Expand All @@ -48,6 +51,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./target/pecoff4j-${{ github.ref }}.jar
asset_name: pecoff4j-${{ github.ref }}.jar
asset_path: ./target/pecoff4j-${{ steps.get_version.outputs.VERSION }}.jar
asset_name: pecoff4j-${{ steps.get_version.outputs.VERSION }}.jar
asset_content_type: application/java-archive

0 comments on commit 8cc35c7

Please sign in to comment.