diff --git a/.github/workflows/discord-notification.yml b/.github/workflows/discord-notification.yml new file mode 100644 index 000000000..63db71ef0 --- /dev/null +++ b/.github/workflows/discord-notification.yml @@ -0,0 +1,29 @@ +name: Discord Notification + +on: + workflow_dispatch: + inputs: + webhook: + type: string + required: true + message: + type: string + required: true + +jobs: + test: + name: Discord Notification + runs-on: ${{ matrix.config.os }} + strategy: + fail-fast: false + matrix: + config: + - os: ubuntu-latest + + steps: + - name: Discord notification + env: + DISCORD_WEBHOOK: ${{ github.event.inputs.webhook }} + uses: Ilshidur/action-discord@master + with: + args: "${{ github.event.inputs.message }}" diff --git a/.github/workflows/pragma-windows-ci.yml b/.github/workflows/pragma-windows-ci.yml index 1b6dfb5ac..fa1cbd025 100644 --- a/.github/workflows/pragma-windows-ci.yml +++ b/.github/workflows/pragma-windows-ci.yml @@ -191,6 +191,13 @@ jobs: cp -u "files_pragma_deps.txt" artifacts/ cp -u "files_pragma_install.txt" artifacts/ + - name: Discord Notifcation + uses: benc-uk/workflow-dispatch@v1 + if: ${{ github.repository == 'Silverlan/pragma' }} + with: + workflow: discord-notification.yml + inputs: '{ "webhook": "${{ secrets.PRAGMA_RELEASE_DISCORD_WEBHOOK }}", "message": "A new nightly pre-release build has been generated! It is available for download here:\n\n\nThis is NOT a stable release, use with caution! Only use this version for testing!" }' + - name: Upload Artifacts uses: actions/upload-artifact@v4 if: always() diff --git a/build_scripts/build.py b/build_scripts/build.py index 9cc4cf306..ee95f1f42 100644 --- a/build_scripts/build.py +++ b/build_scripts/build.py @@ -1074,7 +1074,7 @@ def download_addon(name,addonName,url,commitId=None): download_addon("model editor","tool_model_editor","https://github.com/Silverlan/pragma_model_editor.git","56d46dacb398fa7540e794359eaf1081c9df1edd") if with_vr: - download_addon("VR","virtual_reality","https://github.com/Silverlan/PragmaVR.git","a531c84cf56bd121d36eea03c25f8c38eec17872") + download_addon("VR","virtual_reality","https://github.com/Silverlan/PragmaVR.git","d418794fda578b118273942af548e1e597f7e9bf") if with_pfm: download_addon("PFM Living Room Demo","pfm_demo_living_room","https://github.com/Silverlan/pfm_demo_living_room.git","4cbecad4a2d6f502b6d9709178883678101f7e2c")