Skip to content

Use effect appropriately. Closes #89 (#90) #46

Use effect appropriately. Closes #89 (#90)

Use effect appropriately. Closes #89 (#90) #46

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- 'main'
jobs:
build_site:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: 10
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
pnpm build
- name: Copy artifact to server
uses: appleboy/scp-action@v1
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_PRIVATE_KEY }}
port: ${{ secrets.EC2_PORT }}
source: dist/*
target: ${{secrets.EC2_TARGET_PATH}}