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 }}