Skip to content

fix(web): fix the type of sms code for phone reset (#1402) #14

fix(web): fix the type of sms code for phone reset (#1402)

fix(web): fix the type of sms code for phone reset (#1402) #14

Workflow file for this run

name: deploy docs
on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- 'docs/**'
- '.github/workflows/deploy-doc.yml'
env:
LAF_CI_DOCS_PAT: ${{ secrets.LAF_CI_DOCS_PAT }}
LAF_CI_DOCS_APPID: ${{ secrets.LAF_CI_DOCS_APPID }}
LAF_CI_DOCS_BUCKET_NAME: ${{ secrets.LAF_CI_DOCS_BUCKET_NAME }}
LAF_API_URL: ${{ secrets.LAF_API_URL }}
jobs:
linkCheckerAndDeploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Run Install
uses: borales/actions-yarn@v4
with:
cmd: install # will run `yarn install` command in `docs` directory
dir: docs
- name: Run build
uses: borales/actions-yarn@v4
with:
cmd: build # will run `yarn build` command in `docs` directory
dir: docs
- name: Setup laf-cli
run: npm i laf-cli -g
- name: Login laf-cli
run: |
laf user add doc -r ${{ env.LAF_API_URL }}
laf user switch doc
laf login ${{ env.LAF_CI_DOCS_PAT }}
- name: Deploy to laf
working-directory: docs/.vitepress
run: |
laf app init ${{ env.LAF_CI_DOCS_APPID }}
laf storage push -f ${{ env.LAF_CI_DOCS_BUCKET_NAME }} dist/