Skip to content

Commit

Permalink
build(github): add workflow to deploy to docs to production on push t…
Browse files Browse the repository at this point in the history
…o main

DOPS-54

Signed-off-by: Alex Marshall <[email protected]>
  • Loading branch information
alexhq committed Jul 31, 2023
1 parent ab20546 commit 485a110
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/vercel-production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Vercel Production Docs Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches:
- main
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm install --global vercel@canary
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ repos:
rev: v1.29.0
hooks:
- id: yamllint
exclude: ".*/templates/.*"
exclude: "^(.github/workflows/*.*)$"
- repo: https://github.com/IamTheFij/docker-pre-commit
rev: v2.1.1
hooks:
Expand Down

0 comments on commit 485a110

Please sign in to comment.