Skip to content

Deploy

Deploy #49263

Workflow file for this run

# 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 }}