Skip to content

Deploy static content to Pages #2

Deploy static content to Pages

Deploy static content to Pages #2

Workflow file for this run

name: Deploy
on:
push:
branches: ['main']
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install npm deps
working-directory: ./
run: npm i
- name: Build app
env:
VITE_BOT_TOKEN: ${{ secrets.VITE_BOT_TOKEN }}
working-directory: ./
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist