From a5c1c599621bad813f86f85e1600f0aac32b68fa Mon Sep 17 00:00:00 2001 From: amirhouieh Date: Fri, 10 Jun 2022 11:33:44 +0200 Subject: [PATCH] update --- .github/workflows/deployment-production.yml | 13 +++++++++++++ .github/workflows/deployment-staging.yml | 13 +++++++++++++ .github/workflows/deployment.yml | 11 ----------- 3 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/deployment-production.yml create mode 100644 .github/workflows/deployment-staging.yml delete mode 100644 .github/workflows/deployment.yml diff --git a/.github/workflows/deployment-production.yml b/.github/workflows/deployment-production.yml new file mode 100644 index 0000000..c140f69 --- /dev/null +++ b/.github/workflows/deployment-production.yml @@ -0,0 +1,13 @@ +name: Vercel webhook +on: + push: + branches: [master] +jobs: + deployment: + runs-on: ubuntu-latest + steps: + - name: Calling webhook + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.VERCEL_WEBHOOK_PRODUCTION }} + method: 'POST' \ No newline at end of file diff --git a/.github/workflows/deployment-staging.yml b/.github/workflows/deployment-staging.yml new file mode 100644 index 0000000..c4b722f --- /dev/null +++ b/.github/workflows/deployment-staging.yml @@ -0,0 +1,13 @@ +name: Vercel webhook +on: + push: + branches: [staging] +jobs: + deployment: + runs-on: ubuntu-latest + steps: + - name: Calling webhook + uses: fjogeleit/http-request-action@v1 + with: + url: ${{ secrets.VERCEL_WEBHOOK_STAGING }} + method: 'POST' \ No newline at end of file diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml deleted file mode 100644 index 540b713..0000000 --- a/.github/workflows/deployment.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Vercel webhook -on: push -jobs: - deployment: - runs-on: ubuntu-latest - steps: - - name: Calling webhook - uses: fjogeleit/http-request-action@v1 - with: - url: ${{ secrets.VERCEL_WEBHOOK }} - method: 'POST'