Added ep 114 #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: Build | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "1 0 * * FRI" # every FRI at 00:01 | |
workflow_dispatch: {} # manual release | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Begin CI... | |
uses: actions/checkout@v4 | |
- name: Use Node 18 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.x | |
- name: Use cached node_modules | |
uses: actions/cache@v4 | |
with: | |
path: node_modules | |
key: nodeModules-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
nodeModules- | |
- name: Publish site to Netlify | |
uses: jsmrcaga/[email protected] | |
with: | |
NETLIFY_DEPLOY_TO_PROD: true | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_DEPLOY_MESSAGE: "Deployment from GitHub Actions ${{ steps.vars.outputs.sha_short }} (${{ steps.vars.outputs.branch }})" | |
build_directory: dist |