-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow for build and deployment
- Loading branch information
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |