mirror of
https://github.com/mingjun97/gc-mojoconsole-plus.git
synced 2024-11-24 03:12:52 +00:00
Auto pre-release when push to main branch
This commit is contained in:
parent
4e2e2aaf43
commit
427a5338b2
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -6,13 +6,6 @@ on:
|
|||||||
- "**.java"
|
- "**.java"
|
||||||
branches:
|
branches:
|
||||||
- "main"
|
- "main"
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- "**.java"
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Server-Jar:
|
Build-Server-Jar:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -43,3 +36,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: mojoconsole
|
name: mojoconsole
|
||||||
path: gc-plugin/mojoconsole.jar
|
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
|
Loading…
Reference in New Issue
Block a user