Update Minecraft Wiki links to new domain #168
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build and publish docs" | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Set up JDK 17" | |
uses: "actions/[email protected]" | |
with: | |
java-version: "17" | |
distribution: "temurin" | |
- name: "Validate Gradle Wrapper" | |
uses: "gradle/[email protected]" | |
- name: "Build & Test" | |
uses: "gradle/[email protected]" | |
with: | |
# Don't bother starting and using a daemon for actions builds as it can't be reused | |
arguments: "build --no-daemon" | |
- name: "Archive Test Results" | |
if: "${{ always() }}" | |
uses: "actions/[email protected]" | |
with: | |
name: "test-results" | |
path: | | |
build/reports/ | |
*/build/reports/ | |
- name: "Upload to downloads API" | |
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'" | |
run: "./gradlew uploadToApi" | |
env: | |
DOWNLOADS_API_TOKEN: "${{ secrets.DOWNLOADS_API_TOKEN }}" | |
- name: "Publish to Maven" | |
if: "github.event_name == 'push' && github.ref == 'refs/heads/master'" | |
run: "./gradlew publish" | |
env: | |
PUBLISH_USERNAME: "${{ secrets.PUBLISH_USERNAME }}" | |
PUBLISH_PASSWORD: "${{ secrets.PUBLISH_PASSWORD }}" | |
publish-docs: | |
if: "github.event_name == 'push' && github.ref_name == 'master'" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Checkout repository" | |
uses: "actions/[email protected]" | |
- name: "Set up JDK 17" | |
uses: "actions/[email protected]" | |
with: | |
java-version: 17 | |
distribution: "temurin" | |
- name: "Generate documentation" | |
uses: "gradle/[email protected]" | |
with: | |
arguments: "dokkaHtml" | |
- name: "Deploy to pages" | |
uses: "JamesIves/[email protected]" | |
with: | |
branch: "docs" | |
folder: "api/build/dokka/html" |