Skip to content

chore: merge pull request #44 from Vexcited/dependabot/npm_and_yarn/d… #15

chore: merge pull request #44 from Vexcited/dependabot/npm_and_yarn/d…

chore: merge pull request #44 from Vexcited/dependabot/npm_and_yarn/d… #15

Workflow file for this run

name: Deploy documentation
on:
push:
branches:
- main
paths:
- "docs/**"
- "!docs/README.md"
pull_request:
paths:
- "docs/**"
- "!docs/README.md"
jobs:
deploy_production:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to production
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORGANIZATION_ID }}
vercel-project-id: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}
github-comment: false
working-directory: ./docs
vercel-args: "--prod"
deploy_preview:
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy to preview
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORGANIZATION_ID }}
vercel-project-id: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}
github-comment: true
working-directory: ./docs
alias-domains: |
preview-pr-{{PR_NUMBER}}.docs.lpadder.ml