From d7ab30761b2b29bfe89953e63d0995b1ea3233f2 Mon Sep 17 00:00:00 2001 From: AllanCapistrano Date: Tue, 4 Apr 2023 10:51:50 -0300 Subject: [PATCH] feat: create build bundle action --- .github/workflows/build-bundle.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build-bundle.yml diff --git a/.github/workflows/build-bundle.yml b/.github/workflows/build-bundle.yml new file mode 100644 index 0000000..bc30f06 --- /dev/null +++ b/.github/workflows/build-bundle.yml @@ -0,0 +1,36 @@ +name: Build Bundle + +on: + push: + tags: + - "v*" + +permissions: write-all + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'adopt' + + - name: Building the bundle + run: mvn clean install + + - name: Automatic Releases + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + repo_token: "${{ secrets.BUILD_BUNDLE_TOKEN }}" + prerelease: false + files: | + target/*.jar