.github/workflows/main.yml #32
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
on: | |
repository_dispatch: | |
types: | |
- update | |
schedule: | |
- cron: '0 2 * * *' | |
jobs: | |
build_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Set Node.js 20.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 20.x | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install # will run `yarn install` command | |
- name: Build production bundle | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: prod # will run `yarn prod` command | |
- name: Deploy to Netlify | |
uses: netlify/actions/cli@master | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
build_directory: dist | |
with: | |
args: deploy --prod |