diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3264909..cbb83d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,13 +6,6 @@ on: - "**.java" branches: - "main" - pull_request: - paths: - - "**.java" - types: - - opened - - synchronize - - reopened jobs: Build-Server-Jar: runs-on: ubuntu-latest @@ -43,3 +36,14 @@ jobs: with: name: mojoconsole path: gc-plugin/mojoconsole.jar + + - name: Automatic create a pre-relase + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: true + title: "Development Build" + files: | + gc-plugin/mojoconsole.jar \ No newline at end of file