Skip to content

Bump @zooniverse/panoptes-js from 0.5.0 to 0.5.1 (#283) #193

Bump @zooniverse/panoptes-js from 0.5.0 to 0.5.1 (#283)

Bump @zooniverse/panoptes-js from 0.5.0 to 0.5.1 (#283) #193

name: Deploy Zoo Notes staging
on:
# Run this workflow on push to master
push:
branches:
- master
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
HEAD_COMMIT: ${{ github.sha }}
steps:
- uses: actions/checkout@v3
- name: Node.js build
uses: actions/setup-node@v3
with:
node-version: 'lts/iron'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
env:
REACT_APP_ENV: production
- name: Write commit_id.txt
run: echo ${HEAD_COMMIT} > ./build/commit_id.txt
- name: Save build
uses: actions/upload-artifact@v3
with:
name: build
path: ./build/
deploy:
name: Deploy Staging
uses: zooniverse/ci-cd/.github/workflows/deploy_static.yaml@main
needs: build
with:
source: 'build'
target: 'preview.zooniverse.org/zoo-notes'
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
status: ${{ needs.deploy.result }}
title: 'Zoo Notes staging deploy complete'
title_link: 'https://zoo-notes.preview.zooniverse.org'
secrets:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}