-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (39 loc) · 1.19 KB
/
deploy_production.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Deploy Zooniverse Classroom Production
on:
# Run this workflow on push to production-release tag (via chatops)
push:
tags:
- production-release
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
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'
deploy:
name: Deploy production
uses: zooniverse/ci-cd/.github/workflows/deploy_static.yaml@main
needs: build
with:
source: 'dist'
target: 'classroom.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: 'Zooniverse Classroom Production deploy complete'
title_link: 'https://classroom.zooniverse.org'
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}