MAPS: Fix nzp_xmas2 crashes, collisions, props #560
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: Asset Assembly | |
| on: [push, pull_request] | |
| jobs: | |
| Build: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:24.04 | |
| steps: | |
| - name: Install dependencies | |
| run: | | |
| apt update && apt install git wget zip unzip python3 python3-pip libicu-dev -y | |
| shell: bash | |
| - name: Checkout Repository | |
| uses: actions/checkout@v2 | |
| - name: Set up spawn-zone-tool | |
| working-directory: / | |
| run: | | |
| git clone --recursive https://github.com/nzp-team/spawn-zone-tool.git | |
| python3 -m pip install -r spawn-zone-tool/requirements.txt --break-system-packages | |
| - name: Compile WADs | |
| working-directory: ./ | |
| run: | | |
| bash tools/compile-wads.sh | |
| - name: Compile BSPs | |
| working-directory: ./ | |
| run: | | |
| bash tools/compile-maps.sh --full --zone-tool-path /spawn-zone-tool | |
| - name: Assemble Archives | |
| working-directory: ./ | |
| run: | | |
| cd tools/ | |
| bash assemble-assets.sh | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: assembled-assets | |
| path: ./tmp/*.zip | |
| Release: | |
| needs: [Build] | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ubuntu:24.04 | |
| steps: | |
| - name: Download build artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: assembled-assets | |
| path: ./tmp | |
| - name: Generate Build Date | |
| id: date | |
| run: echo "::set-output name=date::$(date +'%Y-%m-%d-%H-%M-%S')" | |
| - name: Delete Old Release | |
| uses: dev-drprasad/delete-tag-and-release@v0.2.1 | |
| with: | |
| delete_release: true | |
| tag_name: newest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create Release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: newest | |
| release_name: Automated Release ${{ steps.date.outputs.date }} | |
| body: | | |
| These are the latest versions of NZ:P's game asset data. This does **not** include the game itself or the QuakeC. If you do not know what you are doing, you may want/need to be [here](https://github.com/nzp-team/nzportable) instead. | |
| <details> | |
| <summary>Changed files (ignore)</summary> | |
| ``` | |
| ${{ steps.files.outputs.added_modified }} | |
| ``` | |
| </details> | |
| To install: | |
| - Grab the `.ZIP` archive for your desired platform below (*-nzp-assets.zip) | |
| - Extract the contents of the `.ZIP` archive to the required locations. | |
| - NX: `/switch/` | |
| - PC: Anywhere, or where your `nzportable.exe` from an existing install is. | |
| - PSP: `/PSP/GAME/` | |
| - VITA: `/ux0:` (archive contains a `data` folder). | |
| - 3DS: `/3ds/` | |
| draft: true | |
| prerelease: false | |
| - name: Upload NX Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/nx-nzp-assets.zip | |
| asset_name: nx-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload PC Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/pc-nzp-assets.zip | |
| asset_name: pc-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload PSP Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/psp-nzp-assets.zip | |
| asset_name: psp-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload VITA Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/vita-nzp-assets.zip | |
| asset_name: vita-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload 3DS Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/3ds-nzp-assets.zip | |
| asset_name: 3ds-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload TNS Data | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/nspire-nzp-assets.zip | |
| asset_name: nspire-nzp-assets.zip | |
| asset_content_type: application/zip | |
| - name: Upload Texture WAD Archive | |
| uses: actions/upload-release-asset@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| upload_url: ${{ steps.create_release.outputs.upload_url }} | |
| asset_path: ./tmp/texture-wads.zip | |
| asset_name: texture-wads.zip | |
| asset_content_type: application/zip | |
| - name: Publish Release | |
| uses: StuYarrow/publish-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| id: ${{ steps.create_release.outputs.id }} |