remove close job postings #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy jobs.zooniverse.org Staging | |
on: | |
# Run this workflow on creation (or sync to source branch) of a new pull request | |
push: | |
branches: | |
- master | |
# Allow running this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Write commit_id.txt | |
run: echo ${{ github.sha }} > ./build/commit_id.txt | |
- name: Upload files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: 'build' | |
path: ./build | |
deploy_staging: | |
name: Deploy staging | |
uses: zooniverse/ci-cd/.github/workflows/deploy_static.yaml@main | |
needs: upload | |
with: | |
source: 'build' | |
target: 'preview.zooniverse.org/jobs' | |
secrets: | |
creds: ${{ secrets.AZURE_STATIC_SITES }} | |
slack_notification: | |
name: Send Slack notification | |
uses: zooniverse/ci-cd/.github/workflows/slack_notification.yaml@main | |
needs: deploy_staging | |
if: always() | |
with: | |
commit_id: ${{ github.sha }} | |
job_name: upload | |
status: ${{ needs.deploy_staging.result }} | |
title: 'Deploy jobs.zooniverse.org Staging complete' | |
title_link: 'https://jobs.preview.zooniverse.org' | |
secrets: | |
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }} |