multiple photos working + code of conduct #109
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: Staging Deployment Workflow | |
on: | |
push: | |
branches: [staging] | |
jobs: | |
deploy_job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: deploy to staging server with ssh | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{secrets.STAGING_HOST}} | |
username: ${{secrets.STAGING_USER}} | |
key: ${{secrets.STAGING_SSH_KEY}} | |
port: ${{secrets.STAGING_PORT}} | |
script: | | |
sudo -u cosmos sh ~/deploy.sh | |
sudo systemctl restart gunicorn nginx | |
- name: wait for restart | |
run: sleep 10 | |
- name: check status code | |
uses: lakuapik/gh-actions-http-status@v1 | |
with: | |
sites: '["https://cosmos.mkabel.xyz"]' | |
expected: "[200]" |