Merge branch 'main' of github.com:joshfe/persian-game

This commit is contained in:
alij
2024-06-23 09:44:55 +04:30
2 changed files with 36 additions and 0 deletions

23
.github/workflows/node.js.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Persian Game Shop
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: |
ls -lah
bash /var/www/html/persian-game/build.sh

13
build.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
REPO_DIR="/var/www/html/persian-game/"
TOKEN="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"
cd $REPO_DIR
echo $TOKEN | git pull https://$TOKEN@github.com/joshfe/persian-game.git
npm i
npm run build
ls -al