Update upstream (Paper) #4
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: Build 1.21.11 | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - "ver/**" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.commits[0].message, '[ci skip]')" | |
| permissions: | |
| contents: write | |
| env: | |
| BUILD_NUMBER: ${{ github.run_number }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: 'gradle' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Configure Git | |
| run: | | |
| git config --global user.email "no-reply@github.com" | |
| git config --global user.name "Github Actions" | |
| - name: Apply Patches | |
| run: ./gradlew applyAllPatches --stacktrace | |
| - name: Create MojmapPaperclipJar | |
| run: ./gradlew createMojmapPaperclipJar --stacktrace | |
| - name: Prepare release notes and artifacts | |
| run: | | |
| chmod +x ./scripts/prepareRelease.sh | |
| ./scripts/prepareRelease.sh | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPO: ${{ github.repository }} | |
| BUILD_NUMBER: ${{ env.BUILD_NUMBER }} | |
| - name: Upload Pufferfish | |
| uses: actions/upload-artifact@main | |
| with: | |
| name: Pufferfish 1.21.11 | |
| path: ./pufferfish-server/build/libs/pufferfish-paperclip-1.21.11-R0.1-SNAPSHOT-mojmap.jar | |
| - name: Release Pufferfish | |
| uses: softprops/action-gh-release@master | |
| with: | |
| name: "🐡 Puffernot 1.21.11 (Build ${{ env.BUILD_NUMBER }})" | |
| tag_name: "ver-1.21.11" | |
| files: | | |
| ./pufferfish-server/build/libs/pufferfish-paperclip-1.21.11-R0.1-SNAPSHOT-mojmap.jar | |
| ./pufferfish-api/build/libs/pufferfish-api-1.21.11-R0.1-SNAPSHOT.jar | |
| body_path: "./RELEASE.md" | |
| token: "${{ secrets.GITHUB_TOKEN }}" | |
| target_commitish: "${{ github.sha }}" | |
| draft: false | |
| prerelease: false |