diff --git a/.github/workflows/build-vercel.yml b/.github/workflows/build-vercel.yml deleted file mode 100644 index ce1b945737..0000000000 --- a/.github/workflows/build-vercel.yml +++ /dev/null @@ -1,14 +0,0 @@ ---- -name: Build (Vercel) -on: - push: - branches: [ 'main' ] - workflow_dispatch: - -jobs: - vercel_trigger: - name: Vercel Trigger - runs-on: ubuntu-latest - steps: - - name: Hit the webhook - run: curl ${{ secrets.VERCEL_DEPLOY_HOOK }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000000..0ba3bb6726 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,18 @@ +--- +name: Build and Deploy (Fastly) +on: + push: + branches: ['main'] + workflow_dispatch: + +jobs: + trigger: + runs-on: ubuntu-latest + environment: production + steps: + - name: Trigger rocky-linux/docs.rockylinux.org Deploy + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.CROSS_REPO_PAT }} + repository: rocky-linux/docs.rockylinux.org + event-type: deploy