Deploy to Maven Repository by @Foxikle #175
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: Build Pull Request | |
run-name: Deploy to Maven Repository by @${{ github.actor }} | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
# - run: chmod +x gradlew | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Publish | |
run: ./gradlew -Dorg.gradle.jvmargs=--enable-preview publish | |
env: | |
REPO_USERNAME: ${{ secrets.REPO_USERNAME }} | |
REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} |