Skip to content

Commit

Permalink
Add CI workflow for build and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
karnelll committed Oct 4, 2024
1 parent c09ef59 commit 9219e01
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,39 @@ jobs:
runs-on: ubuntu-latest

steps:
# ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์ฒดํฌ์•„์›ƒ ๋‹จ๊ณ„
- name: ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์ฒดํฌ์•„์›ƒ ์ค‘..
uses: actions/checkout@v2

- name: node ์„ค์น˜์ค‘..
# Node.js ์„ค์น˜ ๋‹จ๊ณ„
- name: Node.js ์„ค์น˜์ค‘..
uses: actions/setup-node@v2
with:
node-version: '18.18.2'

# pnpm ์„ค์น˜ ๋‹จ๊ณ„
- name: pnpm ์„ค์น˜์ค‘..
run: npm install -g pnpm

# ์ข…์†์„ฑ ์„ค์น˜ ๋‹จ๊ณ„
- name: ์ข…์†์„ฑ ์„ค์น˜์ค‘...
run: pnpm install
working-directory: ./fe

# ๋นŒ๋“œ ๋‹จ๊ณ„
- name: ๋นŒ๋“œ ์ค‘..
run: pnpm build
working-directory: ./fe

# GitHub Token์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐฐํฌ ๋˜๋Š” Git ์ž‘์—…
- name: ๋ฐฐํฌ ์ค€๋น„ ์ค‘...
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
echo "Using GitHub Token to authenticate..."
git config --global user.email "[email protected]"
git config --global user.name "your-username"
git remote set-url origin https://[email protected]/your-username/your-repository.git
git add .
git commit -m "Auto commit by GitHub Actions"
git push origin main

0 comments on commit 9219e01

Please sign in to comment.