-
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e88a8c
commit 6095b70
Showing
3 changed files
with
11 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,27 +18,17 @@ jobs: | |
- name: Build Java server | ||
run: make buildServer | ||
- run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
# create the GitHub release | ||
- name: Generate checksums | ||
run: | | ||
cp kroki-server.jar kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar | ||
sha512sum kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar > kroki-standalone-server-${{ env.RELEASE_VERSION }}.sha512sum.txt | ||
md5sum kroki-standalone-server-${{ env.RELEASE_VERSION }}.jar > kroki-standalone-server-${{ env.RELEASE_VERSION }}.md5sum.txt | ||
- name: Create release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: "${{ github.ref }}" | ||
draft: false | ||
prerelease: false | ||
# upload assets | ||
- name: Upload fat-jar | ||
uses: actions/[email protected] | ||
run: | | ||
gh release create "v${{ env.RELEASE_VERSION }}" | ||
gh release upload "v${{ env.RELEASE_VERSION }}" ./server/target/kroki-standalone-server-* --clobber | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: server/target/kroki-server.jar | ||
asset_name: kroki-server-${{ env.RELEASE_VERSION }}.jar | ||
asset_content_type: application/zip | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dockerhub: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters