Merge pull request #67 from OneLiteFeatherNET/renovate/paper.run #21
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 Attollo to platforms | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
Publish: | |
name: 'Publish to EldoNexus, Modrinth and Hangar' | |
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo | |
if: github.repository_owner == 'OneLiteFeatherNET' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v3 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
cache: gradle | |
java-version: 17 | |
- name: Publish to Jar | |
run: ./gradlew build publishAllPublicationsToHangar modrinth publish -x test | |
env: | |
ELDO_USERNAME: "${{ secrets.ELDO_USERNAME }}" | |
ELDO_PASSWORD: "${{ secrets.ELDO_PASSWORD }}" | |
HANGAR_SECRET: ${{secrets.HANGAR_KEY}} | |
MODRINTH_TOKEN: ${{ secrets.MODRINTH_KEY }} |