Bump packetevents again #312
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: Modrinth Publish | |
| on: | |
| push: | |
| branches: | |
| - master | |
| # Allow manual triggering from the GitHub UI | |
| workflow_dispatch: | |
| # Trigger when a new release is created | |
| release: | |
| types: [created] | |
| jobs: | |
| publish: | |
| if: github.repository_owner == 'SamB440' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Fetch all history for all branches and tags | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v6 | |
| - name: Publish to Modrinth | |
| run: ./gradlew modrinth | |
| env: | |
| MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
| - name: Capture build artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: Artifacts | |
| path: | | |
| **/build/libs/ | |
| */build/libs/ |