Skip to content

Commit

Permalink
build: github page action으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonny-Cho committed Nov 4, 2023
1 parent b5d7f4e commit 92c6047
Showing 1 changed file with 32 additions and 13 deletions.
45 changes: 32 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,44 @@ on:
push:
branches:
- main
paths-ignore:
- '**/README.md'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
- name: GithubPages Deploy
uses: enriikke/[email protected]
with:
node-version-file: '.nvmrc'
cache: npm

- name: Set Git User
run: |
git config user.email "[email protected]"
git config user.name "Jonny-Cho"
access-token: ${{ secrets.GITHUB_TOKEN }}
deploy-branch: gh-pages
skip-publish: false

- name: Run deploy
run: |
npm ci
npm run deploy
# - name: Set Git User
# run: |
# git config user.email "[email protected]"
# git config user.name "Jonny-Cho"
#
# - name: Run deploy
# run: |
# npm ci
# npm run deploy
# - name: Setup Node
# uses: actions/setup-node@v3
# with:
# node-version-file: '.nvmrc'
# cache: npm
#
# - name: Set Git User
# run: |
# git config user.name "Jonny-Cho"
# git config user.email "[email protected]"
#
# - name: Run deploy
# run: |
# npm ci
# npm run deploy

0 comments on commit 92c6047

Please sign in to comment.