This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
Periodically build application #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Periodically build application | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
deploy-to-vercel: | |
name: Deploy to Vercel | |
runs-on: ubuntu-latest | |
concurrency: | |
group: deploy-to-vercel | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
steps: | |
- name: Checkout code | |
uses: nschloe/action-cached-lfs-checkout@v1 | |
- name: Setup Node.js | |
uses: ./.github/actions/setup-nodejs | |
- name: Deploy Project to Vercel | |
run: npx vercel deploy --prod --token=${{ secrets.VERCEL_TOKEN }} |