From e72920e41fa5636b25e12857649a2bfa03abeca8 Mon Sep 17 00:00:00 2001 From: matcool <26722564+matcool@users.noreply.github.com> Date: Fri, 19 Jan 2024 10:13:22 -0300 Subject: [PATCH] workflow to update website on new releases --- .github/workflows/update-site.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/update-site.yml diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml new file mode 100644 index 00000000..bb40fd9e --- /dev/null +++ b/.github/workflows/update-site.yml @@ -0,0 +1,26 @@ +# Update the install page on the geode-sdk/website repository +name: Update Website + +on: + # trigger when a new release is released + release: + types: + - released + + workflow_dispatch: + +jobs: + trigger: + name: Trigger site build + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GEODE_BOT_PUSH_BIN_TOKEN }} + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: 'geode-sdk', + repo: 'website', + workflow_id: 'build.yml', + ref: 'main' + }) \ No newline at end of file