Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
name: Deploy
name: deploy

on:
push:
branches: ["main"]
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: Give build.sh execute permission
run: chmod +x ./build.sh

- name: Run build script
run: ./build.sh

- name: Pushes to another repository
id: push_directory
uses: cpina/github-action-push-to-another-repository@main
Expand All @@ -28,5 +32,6 @@ jobs:
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
48 changes: 28 additions & 20 deletions .github/workflows/preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,45 @@ on:
jobs:
vercel-preview:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
pull-requests: write

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}

GIT_AUTHOR_EMAIL: ${{ secrets.EMAIL }}
GIT_AUTHOR_NAME: "JeonSuna"
steps:
- uses: actions/checkout@v4

- name: Install Vercel CLI
run: npm install --global vercel@latest && npm install --global pnpm
- name: Get Vercel Environment Variables
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
id: deploy
run: npm install --global vercel@latest

- name: Pull Vercel Environment
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe

- name: Build Project
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe

- name: Override Git Author
run: |
git config --global user.email "${GIT_AUTHOR_EMAIL}"
git config --global user.name "${GIT_AUTHOR_NAME}"
git commit --amend --no-edit --author="${GIT_AUTHOR_NAME} <${GIT_AUTHOR_EMAIL}>"

vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} > vercel-output.txt
echo "preview_url=$(cat vercel-output.txt)" >> $GITHUB_OUTPUT
- name: Deploy to Preview
id: deploy
run: |
DEPLOY_URL=$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --cwd=techfork-fe
echo "preview_url=$DEPLOY_URL" >> $GITHUB_OUTPUT

- name: Comment PR with Preview URL
- name: Comment Preview URL
uses: thollander/actions-comment-pull-request@v2
with:
message: |
βœ… PREVIEW ${{ steps.deploy.outputs.preview_url }}

permissions:
contents: read
pages: write
deployments: write
id-token: write
issues: write
pull-requests: write
πŸŽ‰ κ΅¬ν˜„ν•œ κΈ°λŠ₯ Preview : ${{ steps.deploy.outputs.preview_url }}

comment_tag: "vercel_preview_${{ github.event.pull_request.number }}"
mode: "upsert"
2 changes: 1 addition & 1 deletion src/shared/CardItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const CardItem = () => {
<div className="flex flex-col gap-4 pb-3 border-b border-bgNormal mb-3">
<h3 className="body-sb-18">Title</h3>
<p className="line-clamp-3">
μ£Όμ ˆμ£Όμ ˆγ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡dddddddγ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡
μ£Όμ ˆμ£Όμ ˆγ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡dddddddγ…‡γ…‡γ…‡γ…‡γ…‡γ„Ήγ„Ήγ„Ήγ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡γ…‡
</p>
</div>
<img src={Eye} alt="" />
Expand Down
Loading