Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Biome CI for React

on:
pull_request:
branches: [main, develop]
push:
branches: [main, develop]

jobs:
check-project:
runs-on: ubuntu-latest

steps:
- name: πŸ“₯ Checkout code
uses: actions/checkout@v4

- name: 🟒 Setup Node
uses: actions/setup-node@v3
with:
node-version: 22.x

- name: πŸ“¦ Install dependencies
run: npm ci

- name: πŸ”Ž Run Biome Check
run: npm run check

- name: πŸ—οΈ Build Project
run: npm run build

- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache

- name: creates output
run: sh ./build.sh
# Build ν›„ λ‹€λ₯Έ λ ˆν¬μ§€ν† λ¦¬λ‘œ ν‘Έμ‹œ
- name: Push to Another Repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }}
with:
source-directory: 'output'
destination-github-username: two678 # λ‚΄ GitHub 계정
destination-repository-name: Fandom-K # ν‘Έμ‹œν•  λ ˆν¬μ§€ν† λ¦¬ 이름
user-email: ${{ secrets.EMAIL }} # 이메일 (GitHub Secrets둜 μ €μž₯된 이메일)
commit-message: ${{ github.event.commits[0].message }}
target-branch: main # ν‘Έμ‹œν•  브랜치

# (μ˜΅μ…˜) ν‘Έμ‹œ ν›„ λ‹€λ₯Έ μž‘μ—…μ„ μœ„ν•œ λ³€μˆ˜ 좜λ ₯ (디버깅 μš©λ„)
- name: Test get variable exported by push-to-another-repository
run: echo $DESTINATION_CLONED_DIRECTORY
32 changes: 0 additions & 32 deletions .github/workflows/ci.yml

This file was deleted.

5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
cd ../
mkdir output
cp -R ./Fandom-K/* ./output
cp -R ./output ./Fandom-K/
Loading