Deploy #49179
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
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Deploy | |
on: | |
schedule: | |
- cron: "*/30 0-17,23 * * *" | |
- cron: "*/60 18-22 * * *" | |
jobs: | |
deploy: | |
name: Scheduled Deployment | |
if: github.repository == 'kawalcovid19/wargabantuwarga.com' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Setup Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- name: Install dependencies | |
run: yarn | |
- name: Build and export static assets | |
run: yarn run netlify-export | |
- name: Install Netlify CLI | |
run: yarn global add netlify-cli@4.1.2 | |
- name: Deploy to Netlify | |
run: netlify deploy --prod --dir=out --message "GitHub Actions" | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} |