Skip to content

fix: jobs change

fix: jobs change #4

name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Build
run: |
yarn build
- name: Push to github.io
run: |
cd ./out
git init
git add .
git commit -m "deloy"
git remote add origin https://github.com/jaemin-s/jaemin-s.github.io.git
git push -f origin main
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GH_TOKEN }}
# publish_dir: ./out