Merge pull request #152 from HibiscusMC/development #133
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 to Skyslycer Repository | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'dependabot') && !contains(github.event.head_commit.message, 'nopush')" | |
environment: build | |
runs-on: ubuntu-latest | |
env: | |
HAS_TOKEN: ${{ secrets.REPO_PASSWORD != '' }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Set up Java | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
- name: Build with Gradle | |
run: ./gradlew api:clean api:build --no-daemon --stacktrace | |
- name: Publish to Nexus | |
if: ${{ env.HAS_TOKEN == 'true' }} | |
run: ./gradlew api:publishMavenPublicationToHibiscusMCRepository | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} |