Finally fix publish #52
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 | |
on: [ push ] | |
concurrency: ci-${{ github.ref }} | |
jobs: | |
publish: | |
if: ${{ github.repository_owner == 'SapphireMC' }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Git Repository | |
uses: actions/checkout@v3 | |
- name: Validate gradle wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- name: Patch and publish to repo | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Github Actions" | |
./gradlew applyPatches --stacktrace | |
./gradlew sapphire-api:publish --stacktrace | |
./gradlew publishDevBundlePublicationToActivmineRepository --stacktrace | |
env: | |
NO_SERVER_PUBLISH: true | |
ORG_GRADLE_PROJECT_activmineUsername: ${{ secrets.DEPLOY_USERNAME }} | |
ORG_GRADLE_PROJECT_activminePassword: ${{ secrets.DEPLOY_PASSWORD }} |