forked from okx-code/civmodern
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 958 Bytes
/
latest.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
name: "CivModern Latest Gradle CI"
on:
push:
branches:
- "master"
paths:
- "patches/**/*"
workflow_dispatch: {}
permissions:
contents: write
jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
with:
submodules: "recursive"
- name: "Set up JDK 17"
uses: "actions/setup-java@v3"
with:
java-version: 17
distribution: "corretto"
cache: "gradle"
- name: "Patching CivModern"
run: "./gradlew applyPatches"
- name: "Compiling CivModern"
run: "./gradlew build"
working-directory: project
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "Latest Build"
files: |
LICENCE
project/dist/*.jar