Skip to content

Merge pull request #59 from electron-vite/dev #49

Merge pull request #59 from electron-vite/dev

Merge pull request #59 from electron-vite/dev #49

Workflow file for this run

name: Build & deploy
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3.5.1
with:
node-version: 18.x
- name: Install NPM packages
run: npm i
- name: Build project
run: npm run build
- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./.vitepress/dist
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: production-files
path: ./.vitepress/dist
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.PAGE_TOKEN }}
publish_dir: ./.vitepress/dist