chore(preview): Added preview deployment
This commit is contained in:
3
.github/workflows/deploy.yml
vendored
3
.github/workflows/deploy.yml
vendored
@@ -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)
|
||||
|
||||
21
.github/workflows/preview.yml
vendored
Normal file
21
.github/workflows/preview.yml
vendored
Normal file
@@ -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}}
|
||||
Reference in New Issue
Block a user