Skip to content

Commit 88d9685

Browse files
authored
Merge pull request #91 from ASAP-Lettering/develop
[Release] ver 1.0.0
2 parents 3114c92 + b32d5ab commit 88d9685

File tree

235 files changed

+22186
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

235 files changed

+22186
-116
lines changed

.github/workflows/deploy.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Git push into another repo to deploy to vercel
2+
3+
on:
4+
push:
5+
branches: ["develop"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: pandoc/latex
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install mustache (to update the date)
14+
run: apk add ruby && gem install mustache
15+
- name: creates output
16+
run: sh ./build.sh
17+
- name: Pushes to another repository
18+
id: push_directory
19+
uses: cpina/github-action-push-to-another-repository@main
20+
env:
21+
API_TOKEN_GITHUB: ${{ secrets.AUTO_TOKEN }}
22+
with:
23+
source-directory: "output"
24+
destination-github-username: yyypearl
25+
destination-repository-name: Lettering-Front
26+
user-email: ${{ secrets.OFFICIAL_ACCOUNT_EMAIL }}
27+
commit-message: ${{ github.event.commits[0].message }}
28+
target-branch: develop
29+
- name: Test get variable exported by push-to-another-repository
30+
run: echo $DESTINATION_CLONED_DIRECTORY

.github/workflows/preview.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Preview
2+
3+
on:
4+
pull_request:
5+
branches: ["main", "develop"]
6+
7+
jobs:
8+
vercel-preview:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
deployments: write
15+
id-token: write
16+
issues: write
17+
pull-requests: write
18+
19+
env:
20+
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
21+
22+
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Install Vercel CLI
28+
29+
run: npm install --global vercel@latest
30+
31+
- name: Get Vercel Environment Variables
32+
33+
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
34+
35+
- name: Build Project Artifacts
36+
37+
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
38+
39+
- name: Deploy Project Artifacts to Vercel
40+
41+
id: deploy
42+
43+
run: |
44+
45+
vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel-output.txt
46+
47+
echo "preview_url=$(cat vercel-output.txt)" >> $GITHUB_OUTPUT
48+
49+
- name: Comment PR with Preview URL
50+
51+
uses: thollander/actions-comment-pull-request@v2
52+
53+
with:
54+
message: |
55+
56+
## 🎉 Deploy Preview
57+
${{ steps.deploy.outputs.preview_url }}
58+
[여기](https://github.com/yyypearl/Lettering-Front)에서 배포 결과 확인하기

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ yarn-error.log*
3434
# typescript
3535
*.tsbuildinfo
3636
next-env.d.ts
37+
38+
.env

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
cd ../
3+
mkdir output
4+
cp -R ./Lettering-Front/* ./output
5+
cp -R ./output ./Lettering-Front/

next.config.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
reactStrictMode: false,
4+
swcMinify: true,
5+
images: {
6+
domains: ["lettering-images.s3.amazonaws.com"],
7+
},
8+
};
39

410
export default nextConfig;

0 commit comments

Comments
 (0)