mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 17:37:42 +01:00
9e85687575
* in order to make an omelet, you have to break a few eggs. aka absolutely decimate the gradle project
* far more sane gradle, no publishing yet tho
* attempt maven deploy
* fix publish url and use snapshot repo
* fix secret names
* release, and properly set version
* attempt to set group correctly
* more gradle fixups
(cherry picked from commit 381d89497a
)
31 lines
687 B
YAML
31 lines
687 B
YAML
name: Build and deploy Javadoc
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 17
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
- name: Build javadoc
|
|
run: ./gradlew javadoc
|
|
|
|
- name: Deploy javadoc to its assigned branch
|
|
uses: s0/git-publish-subdir-action@develop
|
|
env:
|
|
REPO: self
|
|
BRANCH: javadoc
|
|
FOLDER: build/docs/javadoc
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CLEAR_GLOBS_FILE: ".github/javadoc-publish-clear"
|