From 0cd81c7bcd79b9407c43cff4f6f2c61b1208b560 Mon Sep 17 00:00:00 2001 From: grog Date: Thu, 12 Oct 2023 18:01:04 -0700 Subject: [PATCH] trying a gitaction release --- .github/workflows/build.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93d82942aa..43703a35cd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,5 +17,24 @@ jobs: distribution: 'adopt' - name: Dependency Test run: mvn test -Dtest=org.myrobotlab.framework.DependencyTest -q - - name: Build with Maven + - name: Build and Test with Maven run: mvn --batch-mode -Dtest=!**/OpenCV* test -q + - name: Package with Maven + run: mvn package -DskipTests + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + draft: false + prerelease: false + - name: Upload Release Artifacts + uses: actions/upload-release-asset@v1 + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./target/myrobotlab.zip + asset_name: myrobotlab.zip + asset_content_type: application/zip \ No newline at end of file