From b9b6a910c1655b7282060b9b91ee3be4a45490b0 Mon Sep 17 00:00:00 2001 From: Michael Glass Date: Sun, 2 May 2021 16:03:55 +0200 Subject: [PATCH] first try, pain coming in 3, 2, 1... (#77) --- .github/workflows/gh-release-assets.yml | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/gh-release-assets.yml diff --git a/.github/workflows/gh-release-assets.yml b/.github/workflows/gh-release-assets.yml new file mode 100644 index 00000000..285df542 --- /dev/null +++ b/.github/workflows/gh-release-assets.yml @@ -0,0 +1,29 @@ +# This workflow will deploy the Opt4J release archives to a newly created release + +name: Opt4J Release Assets + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Yet Another Upload Release Asset Action + uses: shogo82148/actions-upload-release-asset@v1.2.5 + with: + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./build/distributions/* +