Skip to content

Commit

Permalink
ci.yml파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hojeong26 committed Aug 7, 2024
1 parent 9a1274a commit 7296417
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 57 deletions.
55 changes: 1 addition & 54 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# - "services/**"

jobs:
build:
deploy:
runs-on: ubuntu-latest

steps:
Expand All @@ -23,9 +23,6 @@ jobs:
with:
node-version: '18'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build

Expand All @@ -34,53 +31,3 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

test:
runs-on: ubuntu-latest

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

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Dependencies
run: npm install

- name: Run Test
run: npm test

deploy:
needs: build
runs-on: ubuntu-latest

permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.110.0'

- name: Build
run: hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const CategoryProductsSection = ({ categoryId }: Props) => {
categoryId,
});

console.log('Fetched Data:', data);
console.log('isError:', isError);
console.log('isLoading:', isLoading);
// console.log('Fetched Data:', data);
// console.log('isError:', isError);
// console.log('isLoading:', isLoading);

if (isLoading) return <LoadingView />;
if (isError) return <TextView>에러가 발생했습니다.</TextView>;
Expand Down

0 comments on commit 7296417

Please sign in to comment.