Skip to content

Commit

Permalink
Add stg and prd
Browse files Browse the repository at this point in the history
  • Loading branch information
fewensa authored Oct 8, 2023
1 parent 056df8a commit 66a1f74
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy-prd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Deploy production

on:
push:
tags:
- "v*"

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"

- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
node_version: 18
dist_path: dist
vercel_group: itering
preview_output: true
project_name: helix-docs
prod_mode: true
enable_cache: true
enable_notify_slack: true
slack_channel: helix-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}
35 changes: 35 additions & 0 deletions .github/workflows/deploy-stg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy staging

on:
push:
branches: [main]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/checkout@v2
with:
repository: itering/actions
path: .github/actions
persist-credentials: false
ssh-key: "${{ secrets.ITERING_ACTIONS_DEPLOY_KEY }}"

- uses: ./.github/actions/smart-vercel
name: Deploy to Vercel
id: smart-vercel
with:
vercel_token: ${{ secrets.VERCEL_TOKEN }}
node_version: 18
dist_path: dist
vercel_group: itering
preview_output: true
project_name: helix-docs
enable_cache: true
enable_notify_slack: true
slack_channel: helix-ui
slack_webhook: ${{ secrets.SLACK_INCOMING_WEBHOOK_URL }}

0 comments on commit 66a1f74

Please sign in to comment.