2024-04-04 02:13:03 +02:00
|
|
|
name: Publish
|
2022-10-24 23:24:41 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-04-04 02:07:09 +02:00
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "**"
|
2022-10-24 23:24:41 +02:00
|
|
|
|
|
|
|
jobs:
|
2024-04-04 02:07:09 +02:00
|
|
|
build:
|
2022-10-24 23:24:41 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
fetch-depth: 0 # needed for versioning
|
2023-09-27 23:09:53 +02:00
|
|
|
- name: Set up Java
|
2023-09-27 23:11:23 +02:00
|
|
|
uses: actions/setup-java@v3
|
2022-10-24 23:24:41 +02:00
|
|
|
with:
|
2023-09-27 23:09:53 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: |
|
|
|
|
16
|
|
|
|
17
|
2024-06-03 21:50:52 +02:00
|
|
|
21
|
2023-09-27 23:09:53 +02:00
|
|
|
cache: 'gradle'
|
2022-10-24 23:24:41 +02:00
|
|
|
- name: Build with Gradle
|
2024-04-04 02:07:09 +02:00
|
|
|
run: ./gradlew clean :BlueMapCore:publish :BlueMapCommon:publish
|
2022-10-25 00:09:40 +02:00
|
|
|
env:
|
2024-04-04 02:07:09 +02:00
|
|
|
BLUECOLORED_USERNAME: ${{ secrets.BLUECOLORED_USERNAME }}
|
|
|
|
BLUECOLORED_PASSWORD: ${{ secrets.BLUECOLORED_PASSWORD }}
|