Skip to content

Commit

Permalink
feat: vercel 배포 CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrevile committed Jun 29, 2024
1 parent af655d5 commit b82fdd7
Show file tree
Hide file tree
Showing 5 changed files with 2,783 additions and 3,935 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build & Deploy

on:
push:
branches: ['main']

jobs:
build:
runs-on: ubuntu-latest
container: pandoc/latex
steps:
- uses: actions/checkout@v2
- name: Install mustache (to update the date)
run: apk add ruby && gem install mustache
- name: creates ouput
run: sh ./tools/build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.ACCESS_TOKEN }}
with:
source-directory: 'output'
destination-github-username: 'sambad-adventure'
destination-repository-name: 'deploy-sambad'
user-email: ${{secrets.EMAIL}}
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
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "15th-team3-fe",
"private": true,
"scripts": {
"dev:web": "turbo web#dev",
"start:web": "turbo web#start",
"build:web": "turbo web#build",
"build": "turbo build",
"dev": "turbo dev",
"lint": "turbo lint",
Expand All @@ -10,7 +13,8 @@
"devDependencies": {
"prettier": "^3.2.5",
"turbo": "^2.0.4",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"next": "14.2.4"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
Loading

0 comments on commit b82fdd7

Please sign in to comment.