fixed wrong costs #118
This file contains 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 Server | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Deploy to Server | |
uses: appleboy/ssh-action@v1.0.0 | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.DEPLOY_KEY }} | |
script: | | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
nvm use 18 | |
cd /var/www/no-game.xyz/nogame-app | |
git reset --hard origin/master | |
git pull origin master | |
NODE_ENV=production | |
# Decode and set backend .env | |
echo '${{ secrets.BACKEND_ENV_FILE }}' > packages/testnet/backend/.env | |
# Decode and set frontend .env | |
echo '${{ secrets.FRONTEND_ENV_FILE }}' > packages/testnet/frontend/.env | |
npm install | |
npm run testnet-build | |
# Restart PM2 processes | |
pm2 restart all | |
sudo systemctl reload nginx |