Skip to content

fix: Update workflow to correctly upload release and publish to maven #26

fix: Update workflow to correctly upload release and publish to maven

fix: Update workflow to correctly upload release and publish to maven #26

name: Publish Packages
on:
push:
branches:
- master
paths-ignore:
- '**.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Run gradle build and publish
run: >
gradle publish shadowDistZip
-PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }}
- uses: MineInAbyss/publish-action@develop
with:
run-gradle-build: false
release-files: |
keepup/cli/build/distributions/keepup-shadow*.zip