Skip to content

Develop => main ๋จธ์ง€ #9

Develop => main ๋จธ์ง€

Develop => main ๋จธ์ง€ #9

Workflow file for this run

name: pr-preview
on:
# main, develop ๋ธŒ๋žœ์น˜๋ฅผ ํ–ฅํ•ด PR ์˜ฌ๋ฆฌ๋ฉด ์ž„์‹œ ๋ฐฐํฌ๋˜๋„๋ก ์„ค์ •
pull_request:
types:
- opened
- reopened
- synchronize
branches: [main, develop]
# ๊ถŒํ•œ ์„ค์ •
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
pages: write
deployments: write
# ๋™์‹œ์„ฑ ์„ค์ •
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
# workflow์— ์†ํ•œ ๋ ˆํฌ์ง€ํ† ๋ฆฌ์— ์ ‘๊ทผํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค์ •
- name: Checkout
uses: actions/checkout@v4
- run: echo "PREVIEW_PATH=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"
# ์ข…์†์„ฑ ์„ค์น˜ ๋ฐ ํ”„๋กœ์ ํŠธ ๋นŒ๋“œ
- name: Install and Build
run: yarn install && yarn build
# PR ํ”„๋ฆฌ๋ทฐ ๋ฐฐํฌ
- name: Deploy PR Preview
uses: rossjrw/[email protected]
with:
token: ${{ secrets.AUTH_TOKEN}}
source-dir: ./dist/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto