2022-10-24 23:24:41 +02:00
|
|
|
name: Publish
|
|
|
|
|
|
|
|
on:
|
|
|
|
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
|
2022-10-25 00:09:40 +02:00
|
|
|
env:
|
|
|
|
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
|
2022-11-11 13:13:54 +01:00
|
|
|
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
|
2022-10-24 23:24:41 +02:00
|
|
|
run: ./gradlew publish
|