Restore creator UUID handling in bot loading process to maintain data… #15
Workflow file for this run
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: Java CI-CD with Gradle | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| build: | |
| permissions: write-all | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Pull & Checkout" | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: "Set up JDK 21" | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '21' | |
| distribution: 'zulu' | |
| cache: 'gradle' | |
| - name: "Config Git" | |
| run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "actions" | |
| - name: "Apply Patches" | |
| run: | | |
| chmod +x ./gradlew | |
| ./gradlew applyAllPatches | |
| - name: "Build Mojmap" | |
| run: ./gradlew createMojmapPaperclipJar | |
| - name: "Copy jar to staging" | |
| run: mkdir staging && cp DeerFoliaPlus-server/build/libs/DeerFoliaPlus-paperclip-*-mojmap.jar staging/ | |
| - name: "Rename file to DeerFoliaPlus-{git tag name}.jar" | |
| run: | | |
| GIT_TAG=$(git describe --tags --abbrev=0) | |
| ls staging | |
| mv staging/*.jar staging/DeerFoliaPlus-$GIT_TAG.jar | |
| ls staging | |
| - uses: "marvinpinto/action-automatic-releases@latest" | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "${{ steps.build.outputs.GIT_TAG }}" | |
| prerelease: false | |
| files: | | |
| staging/*.jar |