Display deactivate btn only as admin/account-admin (#1220) #718
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-to-staging | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: "Deploy (main to staging)" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait for tests to pass | |
uses: lewagon/wait-on-check-action@v0.2 | |
with: | |
ref: ${{ github.ref }} | |
# check-name: "Test (on Python3.8)" # name of the job we wait for (omit to wait for all checks) | |
running-workflow-name: "Deploy (main to staging)" # name of the check that will wait for other checks | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
wait-interval: 20 # seconds | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: '0' | |
ref: 'main' | |
- name: Install SSH key | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_DEPLOYMENT_KEY }} # private ssh key | |
known_hosts: ${{ secrets.KNOWN_DEPLOYMENT_HOSTS }} # make via ssh-keyscan -t rsa <your host> | |
- run: ci/DEPLOY.sh | |
env: | |
BRANCH_NAME: main | |
STAGING_REMOTE_REPO: ${{ secrets.STAGING_REMOTE_REPO }} |