From d6d930b44884fb88609dd6fee51502f89ffceb35 Mon Sep 17 00:00:00 2001 From: Guz <43732358+Guz013@users.noreply.github.com> Date: Sat, 12 Feb 2022 20:50:00 -0300 Subject: [PATCH] chore(preview): Added preview deployment --- .github/workflows/deploy.yml | 3 +-- .github/workflows/preview.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 237e798..cf57299 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest environment: - name: production + name: Production url: https://totoday.vercel.app steps: - uses: actions/checkout@v2 @@ -19,4 +19,3 @@ jobs: vercel-args: '--prod' vercel-org-id: ${{ secrets.ORG_ID}} vercel-project-id: ${{ secrets.PROJECT_ID}} - github-comment: App deployed for production at:\n\nhttps://totoday.vercel.app\n\nCreated with [vercel-action](https://github.com/marketplace/actions/vercel-action) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 0000000..3c67c73 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,21 @@ +name: Deploy Development Preview +on: + push: + branches: + - dev + - dev/* + +jobs: + deploy: + runs-on: ubuntu-latest + environment: + name: Preview + url: https://totoday-loredapp-guz013.vercel.app/ + steps: + - uses: actions/checkout@v2 + - uses: amondnet/vercel-action@v20 + with: + vercel-token: ${{ secrets.LORED_VERCEL_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} + vercel-org-id: ${{ secrets.ORG_ID}} + vercel-project-id: ${{ secrets.PROJECT_ID}}