remnantchat/.github/workflows/deploy.yml

37 lines
703 B
YAML
Raw Normal View History

2022-08-08 02:33:59 +00:00
name: Deploy to Github Pages
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
2022-08-08 02:36:52 +00:00
node-version: 18
2022-08-08 02:33:59 +00:00
cache: 'npm'
- name: Build
run: |
npm i
npm run build
# https://github.com/marketplace/actions/deploy-to-github-pages
- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.DEPLOY_KEY }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true
SINGLE_COMMIT: true