nova-betterchat/.github/workflows/deploy.yml

33 lines
719 B
YAML
Raw Normal View History

2023-03-03 23:55:02 +01:00
name: Deploy to GitHub Pages
on:
push:
2023-03-04 00:44:02 +01:00
branches: [main]
2023-03-08 16:19:37 +01:00
workflow_dispatch:
2023-03-03 23:55:02 +01:00
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
2023-03-04 00:44:02 +01:00
- uses: actions/checkout@v3
2023-03-03 23:55:02 +01:00
2023-03-04 00:44:02 +01:00
- name: Use Node.js 18
uses: actions/setup-node@v3
2023-03-03 23:55:02 +01:00
with:
node-version: 18
- name: Install dependencies
run: yarn
- name: Build website
run: yarn build
- name: deploy to GitHub Pages
2023-03-04 00:44:02 +01:00
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
user_name: 'github-actions[bot]'
user_email: '41898282+github-actions[bot]@users.noreply.github.com'