Skip to content

Merge pull request #684 from zooniverse/wpconfig-path #27

Merge pull request #684 from zooniverse/wpconfig-path

Merge pull request #684 from zooniverse/wpconfig-path #27

name: Deploy PFE-Lab Production
on:
# Run this workflow on push to production-release tag (via chatops)
push:
tags:
- production-release
jobs:
build:
name: Build production
uses: zooniverse/ci-cd/.github/workflows/npm_build.yaml@main
with:
commit_id: ${{ github.sha }}
node_version: 'lts/hydrogen'
output: 'dist'
script: '_build-production'
deploy:
name: Deploy production
uses: zooniverse/ci-cd/.github/workflows/deploy_static.yaml@main
needs: build
with:
source: 'dist'
target: 'lab.zooniverse.org'
secrets:
creds: ${{ secrets.AZURE_STATIC_SITES }}
slack_notification:
name: Send Slack notification
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main
needs: deploy
if: always()
with:
commit_id: ${{ github.sha }}
job_name: Build production / build
status: ${{ needs.deploy.result }}
title: 'PFE-Lab Production deploy complete'
title_link: 'https://lab.zooniverse.org'
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}