Skip to content

Commit

Permalink
chore: switch to locally hosted PojavBot pt. 2 (#62)
Browse files Browse the repository at this point in the history
* Add pull-reset & remove <=node 16

* Move thing around + proper compile and run
  • Loading branch information
crystall1nedev authored Nov 30, 2022
1 parent f29d920 commit ffd3cd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ jobs:
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
run: |
cd /home/kremix/PojavBot
git pull

- name: Deployment
env:
password: ${{ secrets.BBS_SECRET }}
run: |
yarn compile
cd /home/kremix/PojavBot
yarn pull-reset
yarn
echo $password | sudo -S systemctl restart PojavBot
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"type": "module",
"license": "MIT",
"scripts": {
"pull-reset": "git pull && git reset --hard origin/main",
"compile": "rimraf dist/ && tsc -w",
"format": "prettier --write . && eslint src --fix",
"postinstall": "tsc",
"start": "node --enable-source-maps --es-module-specifier-resolution=node ."
},
"repository": "https://github.com/PojavLauncherTeam/PojavBot.git",
"engines": {
"node": ">=16.14 <=16",
"node": ">=16.14",
"yarn": "1.22"
},
"dependencies": {
Expand Down

0 comments on commit ffd3cd6

Please sign in to comment.