Skip to content

build: BuildConstants for addon version #19

build: BuildConstants for addon version

build: BuildConstants for addon version #19

name: Publish
on:
push:
branches:
- v1.1
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: |
16
17
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build
- 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 }}
files-primary: build/libs/!(*-@(dev|sources|javadoc)).jar
files-secondary: build/libs/*-@(disabled).jar
github-generate-changelog: true
github-prerelease: true