From 54f589a12b6d8caa6231aa4edef21bbab83b00db Mon Sep 17 00:00:00 2001 From: KoonQi Date: Wed, 6 Sep 2023 01:36:14 +0800 Subject: [PATCH] try release --- .github/workflows/build.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f933ed3a..2a5c9f686 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,9 +3,9 @@ name: Build and Test on: push: branches: - - '*' + - "*" pull_request: - branches: [ main ] + branches: [main] jobs: build: @@ -18,8 +18,8 @@ jobs: - name: Set up JDK 17 uses: actions/setup-java@v2 with: - java-version: '17' - distribution: 'adopt' + java-version: "17" + distribution: "adopt" - name: Build with Maven run: mvn clean package @@ -32,4 +32,15 @@ jobs: uses: actions/upload-artifact@v2 with: name: build-artifacts - path: target/ + path: + target/ + + # Create a release with the artifacts + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + files: | + target/* + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}