Skip to content

Commit

Permalink
Prepared for a release with release robot
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSergienko committed Aug 11, 2020
1 parent caf5b4a commit 9d2c2b1
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/upload_release_asset.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Upload Release Asset

on:
workflow_dispatch:
inputs:
version:
description: 'Release version'
required: true
upload_url:
description: 'Upload URL'
required: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build with Maven
run: mvn -B clean package --file pom.xml

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.inputs.upload_url }}
asset_path: ./target/sql-statement-builder-${{ github.event.inputs.version }}.jar
asset_name: sql-statement-builder-${{ github.event.inputs.version }}.jar
asset_content_type: application/java-archive

0 comments on commit 9d2c2b1

Please sign in to comment.