Skip to content

feat: 1.20.6 fabric #70

feat: 1.20.6 fabric

feat: 1.20.6 fabric #70

name: Publish
on:
push:
branches:
- v2.1.x
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: |
8
16
17
21
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build --stacktrace -Psnapshot=true
- name: Publish to snapshots maven repository
uses: gradle/gradle-build-action@v2
env:
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
with:
arguments: publish --stacktrace -Psnapshot=true
- name: Publish to GitHub
uses: Apehum/mc-publish@v1.1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-generate-changelog: true
github-prerelease: true
- name: Build dokka
uses: gradle/gradle-build-action@v2
with:
arguments: dokkaHtmlCollector
- name: Upload dokka artifact
uses: actions/upload-pages-artifact@v2
with:
path: ./build/dokka/htmlCollector
deploy-dokka:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2