Skip to content

Commit

Permalink
[CI/CD] Add CI/CD Configuration File
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongHunE committed Oct 30, 2024
1 parent e3f2fef commit 7024a3d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main # HTML 파일을 푸시할 브랜치

jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Repository 복제
- name: Check out the repository
uses: actions/checkout@v3

# node.js 환경 설정
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
cache: npm

- name: Build the project
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: .

0 comments on commit 7024a3d

Please sign in to comment.