From ebbe04ddbf235a28d9eac8b487311907afa62452 Mon Sep 17 00:00:00 2001 From: Marcel Wiessler Date: Tue, 26 Sep 2023 09:49:32 +0200 Subject: [PATCH] add workflow to redeploy sample website when pushing to main --- .github/workflows/deploy_samples_website.yml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/deploy_samples_website.yml diff --git a/.github/workflows/deploy_samples_website.yml b/.github/workflows/deploy_samples_website.yml new file mode 100644 index 000000000..e0866aa8f --- /dev/null +++ b/.github/workflows/deploy_samples_website.yml @@ -0,0 +1,22 @@ +name: Deploy_Samples_Website +on: + push: + branches: [main] + +jobs: + dispatch: + name: Dispatch + env: + PACKAGES_TO_UPGRADE: ${{ needs.run_publish.outputs.packages }} + runs-on: ubuntu-latest + strategy: + matrix: + repo: ['needle-tools/needle-engine-samples-web'] + timeout-minutes: 5 + steps: + - name: Dispatch to workflows + run: | + curl -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \ + --request POST \ + --data '{"event_type": "deploy_docs", "client_payload": { "reason": "Samples Update: ${{ github.event.head_commit.message }}" }}' https://api.github.com/repos/${{ matrix.repo }}/dispatches \ No newline at end of file