Skip to content

Finally fix publish #52

Finally fix publish

Finally fix publish #52

Workflow file for this run

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 }}