Merge pull request #6 from opencobra/constructor_dev #7
This file contains hidden or 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
# .github/workflows/deploy.yml | |
name: Deploy to production | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout (for CI steps only) | |
uses: actions/checkout@v4 | |
- name: Deploy via SSH | |
uses: appleboy/ssh-action@v1 | |
with: | |
host: ${{ secrets.PROD_HOST }} | |
username: ${{ secrets.PROD_USER }} | |
key: ${{ secrets.PROD_SSH_KEY }} | |
script: | | |
/home/saleh/reconstructor/deploy.sh |