-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (28 loc) · 1.01 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 }}