mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-15 07:05:16 +01:00
30 lines
690 B
YAML
30 lines
690 B
YAML
|
name: Publish
|
||
|
|
||
|
on:
|
||
|
release:
|
||
|
types: [published]
|
||
|
workflow_dispatch:
|
||
|
|
||
|
jobs:
|
||
|
publish:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
submodules: recursive
|
||
|
fetch-depth: 0 # needed for versioning
|
||
|
- name: Set up JDK 1.17
|
||
|
uses: actions/setup-java@v1
|
||
|
with:
|
||
|
java-version: 17
|
||
|
- uses: actions/cache@v2
|
||
|
with:
|
||
|
path: |
|
||
|
~/.gradle/caches
|
||
|
~/.gradle/wrapper
|
||
|
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
|
||
|
restore-keys: |
|
||
|
${{ runner.os }}-bluemap-
|
||
|
- name: Build with Gradle
|
||
|
run: ./gradlew publish
|