-
Notifications
You must be signed in to change notification settings - Fork 97
46 lines (39 loc) · 1.15 KB
/
autobuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Nightly build
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
- name: Increment version number
uses: action-pack/increment@v2
with:
name: 'VERSION_s'
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ secrets.GITHUB_REPOSITORY }}
owner: 'MinicraftPlus'
- name: Setup Gradle
uses: gradle/[email protected]
- name: Execute Gradle build
run: ./gradlew build
- uses: "dciborow/[email protected]"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "v${{ vars.VERSION }}-dev${{ vars.VERSION_s }}"
prerelease: true
title: "Version ${{ vars.VERSION }}, Pre-release ${{ vars.VERSION_s }} (Nightly)"
generate_release_notes: true
files: |
LICENSE
ChangeLog.md
build/libs/**.jar