Merge branch 'main' of https://github.com/eskirk/elliotkirk into dev #6
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: Deploy dev | |
| on: | |
| push: | |
| branches: [dev] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Deploy elliotkirkdev | |
| uses: appleboy/[email protected] | |
| with: | |
| host: ${{secrets.SSH_HOST}} | |
| key: ${{secrets.SSH_KEY}} | |
| username: ${{secrets.SSH_USERNAME}} | |
| passphrase: ${{secrets.SSH_PASSPHRASE}} | |
| script: | | |
| export NVM_DIR=~/.nvm | |
| source ~/.nvm/nvm.sh | |
| cd elliotkirkdev | |
| nvm use 19.0.1 | |
| git checkout dev | |
| git pull -f origin dev | |
| yarn && yarn build | |
| echo "Deployed elliotkirkdev" |