mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-30 08:18:00 +01:00
Added build tasks
This commit is contained in:
parent
c74ec25eac
commit
42d482bac4
3 changed files with 64 additions and 0 deletions
19
.github/workflows/gradle-build.yml
vendored
Normal file
19
.github/workflows/gradle-build.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Build on Push
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
jobs:
|
||||||
|
gradle:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Commit
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Fetch Tags
|
||||||
|
run: git fetch --unshallow --tags -f
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
- name: Build Gradle
|
||||||
|
uses: eskatos/gradle-command-action@v1
|
||||||
|
with:
|
||||||
|
arguments: check
|
19
.github/workflows/gradle-check.yml
vendored
Normal file
19
.github/workflows/gradle-check.yml
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
name: Build on Pull Request
|
||||||
|
on:
|
||||||
|
- pull_request
|
||||||
|
jobs:
|
||||||
|
gradle:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Commit
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Fetch Tags
|
||||||
|
run: git fetch --unshallow --tags -f
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
- name: Build Gradle
|
||||||
|
uses: eskatos/gradle-command-action@v1
|
||||||
|
with:
|
||||||
|
arguments: check
|
26
.github/workflows/gradle-publish.yml
vendored
Normal file
26
.github/workflows/gradle-publish.yml
vendored
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Publish
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
jobs:
|
||||||
|
gradle:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Commit
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- name: Fetch Tags
|
||||||
|
run: git fetch --unshallow --tags -f
|
||||||
|
- name: Set up JDK
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
- name: Publish Modrinth Jar
|
||||||
|
env:
|
||||||
|
MODRINTH_KEY: ${{ secrets.MODRINTH_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
uses: eskatos/gradle-command-action@v1
|
||||||
|
with:
|
||||||
|
arguments: modrinth
|
Loading…
Reference in a new issue