Skip to content

Support both long and short country codes #17

Support both long and short country codes

Support both long and short country codes #17

Workflow file for this run

name: Deployment to Production
on:
push:
tags:
- '**'
jobs:
tests:
name: Deploy to Production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: bahmutov/npm-install@v1
- run: |
mkdir ~/.ssh
chmod u+rwx,go-rwx ~/.ssh
echo -e "Host ti-broish-api\n Hostname ${{ secrets.DEPLOY_SSH_HOST }}" >> ~/.ssh/config
chmod u+rw,go-rwx ~/.ssh/config
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
log-public-key: false
- run: ssh-keyscan -H ${{ secrets.DEPLOY_SSH_HOST }} >> ~/.ssh/known_hosts 2>/dev/null
- run: npm install -g pm2@^5
- run: npm run deploy:production