Skip to content

fix(ci): fix deploy script and use github actions for deploy #2

fix(ci): fix deploy script and use github actions for deploy

fix(ci): fix deploy script and use github actions for deploy #2

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/[email protected]
with:
node-version: '18'
- name: Install dependencies
run: npm i
- name: Build
run: npm run predeploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist/apps