Skip to content

Auto Deploy StaticPage Every Day #9

Auto Deploy StaticPage Every Day

Auto Deploy StaticPage Every Day #9

Workflow file for this run

name: Auto Deploy StaticPage Every Day
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
workflow_dispatch: # 수동 트리거
schedule:
- cron: "0 0 * * *" # 매일 자정 (UTC) 트리거
jobs:
cron:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vercel CLI (Vercel CLI 설치)
run: npm install -g vercel
- name: Pull Vercel Environment Information (Vercel 원격 환경에서 환경 변수 및 프로젝트 설정을 가져오기)
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts (프로젝트 빌드)
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel (프로젝트를 배포)
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}