Bump to 5.7.0-SNAPSHOT and update VV usage #528
This file contains hidden or 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 Hangar and Modrinth | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - dev | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| if: github.repository_owner == 'ViaVersion' | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # 6.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # 5.0.0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # 5.0.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| check-latest: true | |
| - name: Build with Gradle | |
| run: ./gradlew build --refresh-dependencies | |
| - name: Publish to Hangar | |
| env: | |
| HANGAR_TOKEN: ${{ secrets.HANGAR_TOKEN }} | |
| run: ./gradlew publishAllPublicationsToHangar --stacktrace | |
| continue-on-error: true | |
| - name: Publish to Modrinth | |
| env: | |
| MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
| run: ./gradlew modrinth --stacktrace | |
| continue-on-error: true |