diff --git a/.github/workflows/vercelMerge.yml b/.github/workflows/vercelMerge.yml deleted file mode 100644 index 8267411..0000000 --- a/.github/workflows/vercelMerge.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Deploy to vercel on merge -on: - push: - branches: - - new -jobs: - build_and_deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - # To set more environment variables on the build, either use Vercel CLI or this: - # - uses: dkershner6/vercel-set-env-action@v1 - # with: - # token: ${{ secrets.VERCEL_TOKEN }} - # projectName: events-app - # envVariableKeys: SOME_VARIABLE - # env: - # SOME_VARIABLE: ${{ secrets.SOME_VARIABLE }} - # TARGET_SOME_VARIABLE: preview,development,production - # TYPE_SSOME_VARIABLE: encrypted - - uses: amondnet/vercel-action@v25 - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-args: '--prod' - vercel-org-id: ${{ secrets.ORG_ID}} - vercel-project-id: ${{ secrets.PROJECT_ID}} \ No newline at end of file diff --git a/.github/workflows/vercelPullRequest.yml b/.github/workflows/vercelPullRequest.yml deleted file mode 100644 index 890b717..0000000 --- a/.github/workflows/vercelPullRequest.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Create vercel preview URL on pull request -on: - pull_request_target: - branches: - - new -jobs: - build_and_deploy: - runs-on: ubuntu-latest - steps: - - uses: trstringer/manual-approval@v1 - timeout-minutes: 240 - with: - secret: ${{ github.TOKEN }} - approvers: thedevyashsaini # GitHub username of the approver - minimum-approvals: 1 - issue-title: "Deploying PR to dev from staging" - issue-body: "Please approve or deny the deployment of this PR." - exclude-workflow-initiator-as-approver: true - additional-approved-words: '' - additional-denied-words: '' - - uses: actions/checkout@v4 - - uses: amondnet/vercel-action@v25 - id: vercel-deploy - with: - vercel-token: ${{ secrets.VERCEL_TOKEN }} - github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-org-id: ${{ secrets.ORG_ID}} - vercel-project-id: ${{ secrets.PROJECT_ID}} - - name: preview-url - run: | - echo ${{ steps.vercel-deploy.outputs.preview-url }} \ No newline at end of file