chore: update console.json (#6) #3
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 to Prod | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - gh-pages | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Setup SSH Key | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa | |
| echo "${{ secrets.SSH_CONFIG }}" > ~/.ssh/config | |
| chmod 600 ~/.ssh/{id_rsa,config} | |
| shell: bash | |
| - name: Deploy via SSH | |
| run: | | |
| ssh prod " | |
| cd /opt/www/api.infini.sh && | |
| git pull -q origin gh-pages && | |
| git log -n 1 --format=%h,%ci,%an,%s | |
| " | |
| shell: bash |