Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yyj1219 authored Nov 9, 2024
1 parent 9c32574 commit 9d3d741
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy Jekyll Site to GitHub Pages

on:
push:
branches:
- main # main 브랜치에 푸시할 때마다 실행

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3 # 사용할 Ruby 버전
bundler-cache: true # Bundler 캐시 활성화

- name: Install dependencies
run: |
gem install jekyll bundler
bundle install
- name: Build the site
run: |
bundle exec jekyll build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site # Jekyll 빌드 결과물 경로

0 comments on commit 9d3d741

Please sign in to comment.