improv: Add datapacks to default list of included directories #439
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: Continuous | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| continuous: | |
| name: "Continuous Pre-Release" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout latest code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| check-latest: true | |
| cache: 'gradle' | |
| - uses: gradle/actions/setup-gradle@v5 | |
| with: | |
| gradle-version: wrapper | |
| - uses: luangong/setup-install4j@v1 | |
| with: | |
| version: '11.0' | |
| license: ${{ secrets.INSTALL4J_LICENSE }} | |
| - name: Remove install4j script | |
| run: | | |
| rm install4j_linux-x64_*.sh | |
| - name: Set Permissions | |
| run: | | |
| chmod +x gradlew | |
| - name: Build with Gradle | |
| run: | | |
| ./gradlew build --info --full-stacktrace | |
| ./gradlew media --info --full-stacktrace | |
| - name: Collect files | |
| run: | | |
| mkdir continuous | |
| cp serverpackcreator-api/build/libs/*.jar continuous/ | |
| cp serverpackcreator-app/build/libs/*.jar continuous/ | |
| cp serverpackcreator-plugin-example/build/libs/*.jar continuous/ | |
| cp media/*.dmg continuous/ | |
| cp media/*.sh continuous/ | |
| cp media/*.exe continuous/ | |
| rm -f continuous/output.txt continuous/*plain.jar | |
| - name: Generate checksum | |
| uses: jmgilman/actions-generate-checksum@v1 | |
| with: | |
| patterns: | | |
| continuous/* | |
| - name: Collect checksum | |
| run: | | |
| cp checksum.txt continuous/ | |
| - name: Update develop | |
| uses: richardsimko/update-tag@v1 | |
| with: | |
| tag_name: continuous | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: ncipollo/release-action@v1 | |
| with: | |
| allowUpdates: 'true' | |
| artifacts: "continuous/*" | |
| body: "Continuous dev-build release.<br>Updated every time changes are pushed to develop.<br>Do not use unless you have been told to, or are curious about the contents of the dev build.<br>Do not link to this release." | |
| commit: "develop" | |
| name: "continuous" | |
| prerelease: 'true' | |
| removeArtifacts: 'true' | |
| replacesArtifacts: 'true' | |
| tag: 'continuous' | |
| - name: Get source archives | |
| run: | | |
| wget -O continuous/source.zip https://github.com/Griefed/ServerPackCreator/archive/refs/tags/continuous.zip | |
| wget -O continuous/source.tar.gz https://github.com/Griefed/ServerPackCreator/archive/refs/tags/continuous.tar.gz | |
| - name: Cleanup continuous | |
| id: action-ssh | |
| uses: tiyee/[email protected] | |
| with: | |
| host: ${{ secrets.SPCUPLOAD_HOST }} | |
| username: ${{ secrets.SPCUPLOAD_USERNAME }} | |
| privateKey: ${{ secrets.SPCUPLOAD_KEY }} | |
| command: 'rm -rf ~/spc/continuous' | |
| - name: Copy folder content recursively to remote | |
| uses: nogsantos/scp-deploy@master | |
| with: | |
| src: ./continuous | |
| host: ${{ secrets.SPCUPLOAD_HOST }} | |
| remote: "${{ secrets.SPCUPLOAD_TARGET }}" | |
| user: ${{ secrets.SPCUPLOAD_USERNAME }} | |
| key: ${{ secrets.SPCUPLOAD_KEY }} |