Skip to content

Commit

Permalink
Merge pull request #60 from TripInfoWeb/dev
Browse files Browse the repository at this point in the history
배포 작업 테스트
  • Loading branch information
ssssksss authored Jun 21, 2024
2 parents 92a8aef + 5a35c4f commit a548ed6
Show file tree
Hide file tree
Showing 135 changed files with 5,831 additions and 130 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: git push into another repo to deploy to vercel

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 output
run: sh ./build.sh
- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.AUTO_DEPLOY_SOLITOUR_7WX1ZQUYSUFP}}
with:
source-directory: 'output'
destination-github-username: ssssksss
destination-repository-name: solitour-frontend
user-email: ${{ secrets.PRIVATE_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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"useTabs": false,
"tabWidth": 2,
"trailingComma": "all",
"printWidth": 80
"printWidth": 80,
"plugins": ["prettier-plugin-tailwindcss"]
}
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 ./solitour-frontend/* ./output
cp -R ./output ./solitour-frontend/
Loading

0 comments on commit a548ed6

Please sign in to comment.