Auto pre-release when push to main branch

This commit is contained in:
mingjun97 2022-05-18 18:55:17 -07:00
parent 4e2e2aaf43
commit 427a5338b2

View File

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