Merge pull request #332 from solace-iot-team/195858-patch-1 #199
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: deployment | |
on: | |
# for testing | |
workflow_dispatch: | |
# production | |
push: | |
branches: | |
- main | |
jobs: | |
dev_deployment: | |
runs-on: ubuntu-latest | |
name: Deploy to AWS Dev Environment | |
steps: | |
- name: executing remote ssh commands using ssh key | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.AWS_DEV_HOST }} | |
username: ${{ secrets.AWS_DEV_USERNAME }} | |
key: ${{ secrets.AWS_DEV_KEY }} | |
port: ${{ secrets.AWS_DEV_PORT }} | |
script: | | |
/home/ec2-user/update-env.sh |