From 9d2c2b15d747fc5ec6c4c3b0d6f949e6abb41564 Mon Sep 17 00:00:00 2001 From: Anastasiia Sergienko Date: Tue, 11 Aug 2020 12:51:43 +0200 Subject: [PATCH] Prepared for a release with release robot --- .github/workflows/upload_release_asset.yml | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/upload_release_asset.yml diff --git a/.github/workflows/upload_release_asset.yml b/.github/workflows/upload_release_asset.yml new file mode 100644 index 00000000..8edd221f --- /dev/null +++ b/.github/workflows/upload_release_asset.yml @@ -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 \ No newline at end of file