fix: sync dependancies #382
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
| name: ARENA Dev Staging SSH Deploy | |
| on: | |
| # Trigger the workflow on push on master | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: ssh deploy | |
| uses: appleboy/ssh-action@master | |
| env: | |
| DEPLOY_TARGET: ${{ secrets.ARENA_DEV1_DEPLOY_TARGET }} | |
| with: | |
| host: ${{ secrets.ARENA_DEV1_DEPLOY_HOST }} | |
| username: ${{ secrets.ARENA_DEV1_DEPLOY_USER }} | |
| key: ${{ secrets.ARENA_DEV1_DEPLOY_KEY }} | |
| port: ${{ secrets.DEPLOY_PORT }} | |
| envs: DEPLOY_TARGET | |
| script_stop: true | |
| script: | | |
| cd $DEPLOY_TARGET | |
| git checkout main | |
| git reset --hard HEAD | |
| git pull | |
| cd .. | |
| ./staging.sh down | |
| ./staging.sh up --force-recreate --build -d |