Skip to content

Commit

Permalink
testing binary releases
Browse files Browse the repository at this point in the history
  • Loading branch information
codeprefect authored and arnaudroques committed Sep 10, 2021
1 parent 285d5eb commit eb38f39
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Main
on:
# push:
# branches:
# - master # should run docker-push when no pull request
# create: # should run docker-tag when it is a tag, and no pull request
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
check-latest: true
cache: 'maven'

- name: build with maven
run: mvn --batch-mode --define java.net.useSystemProxies=true package

- name: get tag name
id: version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/*/}

- name: create renamed build
run: cp target/plantuml.war target/plantuml-${{ steps.version.outputs.VERSION }}.war

- name: upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/plantuml-${{ steps.version.outputs.VERSION }}.war
asset_name: plantuml-${{ steps.version.outputs.VERSION }}.war
tag: ${{ github.ref }}
overwrite: true

0 comments on commit eb38f39

Please sign in to comment.