Scheduled Run #321
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: 'Scheduled Run' | |
on: | |
schedule: | |
- cron: '0 10 * * *' # This line sets the job to run every day at 10am UTC | |
jobs: | |
deploy: | |
name: 'Deploy' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@master | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.11' | |
- name: Setup environment and build | |
run: | | |
chmod +x utils/setup_env.sh | |
. utils/setup_env.sh | |
- name: Deploy Netlify | |
uses: jsmrcaga/action-netlify-deploy@v2.3.0 | |
with: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_DEPLOY_TO_PROD: true | |
build_directory: evidence/build | |
install_command: make build run | |
build_command: make evidence-build |