chore: use rainbow wallet #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vite with Deploy | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: ['16.15.0'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 6.0.2 | |
- name: Install package and Build 🔧 | |
run: | | |
pnpm install | |
- name: Build 🔧 | |
run: | | |
pnpm run build | |
cp dist/index.html dist/404.html # vue-router history mode | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
# folder dist/* -> branch gh-pages / | |
branch: gh-pages | |
folder: dist |