fix: Far more reliable downloads #41
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: Publish Packages | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '23' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
shell: bash | |
run: chmod +x gradlew | |
- name: Run gradle publish and build | |
run: > | |
./gradlew publish shadowDistZip | |
-PmineinabyssMavenUsername=${{ secrets.MAVEN_PUBLISH_USERNAME }} -PmineinabyssMavenPassword=${{ secrets.MAVEN_PUBLISH_PASSWORD }} | |
- name: Run native compile | |
run: ./gradlew nativeCompile | |
- uses: MineInAbyss/publish-action@develop | |
with: | |
run-gradle-build: false | |
release-files: | | |
keepup-cli/build/distributions/keepup*.zip | |
keepup-cli/build/native/nativeCompile/keepup |