fix: I FORGOT A COMMA (#28) #61
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: Remote Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| # on code related change | |
| - ".github/workflows/deploy.yml" | |
| - "pages/**" | |
| - "components/**" | |
| - "lib/**" | |
| - "public/**" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build & deploy | |
| runs-on: ubuntu-latest | |
| environment: production | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| - name: Set Short SHA | |
| id: short_sha | |
| run: | | |
| echo $(pwd) | |
| echo $(ls) | |
| echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
| - name: executing remote ssh commands using password | |
| uses: appleboy/[email protected] | |
| with: | |
| context: . | |
| host: ${{ secrets.HOST }} | |
| username: ${{ secrets.USERNAME }} | |
| password: ${{ secrets.PASSWORD }} | |
| port: ${{ secrets.PORT }} | |
| script: | | |
| cd /${{ secrets.USERNAME }} | |
| bash ./deploy.sh ${{ github.event.repository.name }} |