From f341a4ab1d049699a44211dbade74a10d1fccca7 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Thu, 1 Aug 2024 11:35:27 -0400 Subject: [PATCH] replace vercel with fastly --- .github/workflows/build-vercel.yml | 14 -------------- .github/workflows/deploy.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/build-vercel.yml create mode 100644 .github/workflows/deploy.yml 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