This repository has been archived by the owner on Mar 28, 2024. It is now read-only.
AppDeploy #3917
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: AppDeploy | |
on: | |
schedule: | |
- cron: '0 */4 * * *' | |
push: | |
paths: | |
- 'readme-profiles/*.md' | |
- 'src/**' | |
- 'contributors.json' | |
branches: | |
- main | |
jobs: | |
deploy-app: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Build Project | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '12' | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/cache | |
!~/cache/exclude | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('**/package.lock.json') }} | |
- run: npm i | |
- env: | |
GITHUB_TOKEN: ${{ secrets.USER_TOKEN }} | |
run: npm run build | |
- name: Deploy production to Netlify | |
uses: South-Paw/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} | |
build-dir: './public' | |
comment-on-commit: true |