Skip to content

chore(release): cut 101.6.9 [skip release] #155

chore(release): cut 101.6.9 [skip release]

chore(release): cut 101.6.9 [skip release] #155

name: 'dhis2: netlify deploy production'
# Requirements:
#
# - Org secrets:
# DHIS2_BOT_NETLIFY_TOKEN
# DHIS2_BOT_GITHUB_TOKEN
# - Repo secrets:
# NETLIFY_SITE_ID
# - Customize the 'jobs.build.steps.netlify-deploy.publish-dir' property
on:
push:
branches:
- master
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- name: Build
run: yarn d2-app-scripts build --standalone
- name: Deploy
id: netlify-deploy
uses: nwtgck/[email protected]
timeout-minutes: 1
with:
github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }}
github-deployment-environment: 'netlify'
github-deployment-description: 'Production Deploy on Netlify'
deploy-message: Github actions production deploy
enable-pull-request-comment: false
enable-commit-comment: true
enable-commit-status: true
production-branch: master
production-deploy: true
# customize according to project needs
publish-dir: 'build/app'
env:
# org secret
NETLIFY_AUTH_TOKEN: ${{ secrets.DHIS2_BOT_NETLIFY_TOKEN }}
# repo secret
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}