Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dustalov committed Sep 25, 2021
1 parent 503a0e2 commit 167117f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ jobs:
java-version: 11
- name: Build with Maven
run: mvn package -DskipTests=true -Dmaven.javadoc.skip=true -Dshade=true -B
- name: Get Version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.event.release.tag_name }}
release_name: Watset ${{ github.event.release.tag_name }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Watset ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
- name: Upload Release Asset
Expand Down Expand Up @@ -84,6 +87,6 @@ jobs:
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
build-args: |
RELEASE=${{ github.event.release.tag_name }}
RELEASE=${{ steps.get_version.outputs.VERSION }}
tags: |
ghcr.io/nlpub/watset-java:latest

0 comments on commit 167117f

Please sign in to comment.