File tree Expand file tree Collapse file tree 12 files changed +345
-196
lines changed Expand file tree Collapse file tree 12 files changed +345
-196
lines changed Original file line number Diff line number Diff line change 1
1
ReadMe.md
2
2
node_modules /
3
3
dist /
4
- .data /
4
+ . * /
5
5
start.sh
6
- .husky /
7
- .github /
8
- .vscode /
6
+ .eslintrc.json
9
7
* .pem
Original file line number Diff line number Diff line change @@ -47,23 +47,27 @@ jobs:
47
47
mv ${{ env.ARTIFACT_PATH }} ./docker-compose.yml ./start.sh ./build
48
48
49
49
- name : Transport Image
50
- uses : garygrossgarten/github -action-scp@release
50
+ uses : appleboy/scp -action@v0.1.7
51
51
if : ${{ env.HOST }}
52
52
with :
53
- local : ./build
54
- remote : /tmp
53
+ source : ./build/*.*
54
+ target : /tmp/${{ env.BOX_NAME }}
55
55
host : ${{ secrets.HOST }}
56
56
username : ${{ secrets.USER }}
57
- privateKey : ${{ secrets.SSH_KEY }}
57
+ password : ${{ secrets.SSH_KEY }}
58
+ strip_components : 1
58
59
59
60
- name : Run Image
60
61
uses : garygrossgarten/github-action-ssh@release
61
62
if : ${{ env.HOST }}
62
63
with :
63
64
host : ${{ secrets.HOST }}
64
65
username : ${{ secrets.USER }}
65
- privateKey : ${{ secrets.SSH_KEY }}
66
+ password : ${{ secrets.SSH_KEY }}
66
67
command : |
67
- mv /tmp/docker-compose.yml /tmp/start.sh ~/
68
- chmod +x ~/start.sh
69
- sudo ~/start.sh ${{ env.ARTIFACT_PATH }}
68
+ mkdir -p ~/${{ env.BOX_NAME }}
69
+ cd /tmp/${{ env.BOX_NAME }}
70
+ mv docker-compose.yml start.sh ~/${{ env.BOX_NAME }}
71
+ cd ~/${{ env.BOX_NAME }}
72
+ chmod +x start.sh
73
+ echo '${{ secrets.SSH_KEY }}' | sudo -S ./start.sh /tmp/${{ env.BOX_NAME }}/${{ env.ARTIFACT_PATH }}
Original file line number Diff line number Diff line change 20
20
node-version : 20
21
21
registry-url : https://npm.pkg.github.com
22
22
cache : pnpm
23
+ - name : Inject Environment variables
24
+ run : |
25
+ cat > .env <<EOF
26
+ ${{ secrets.ENV_FILE }}
27
+ EOF
23
28
- name : Install, Build & Publish
24
29
run : |
25
30
pnpm i && npm test
Original file line number Diff line number Diff line change 1
1
node_modules /
2
2
package-lock.json
3
+ yarn.lock
3
4
dist /
4
5
type /* .d.ts
5
6
.env *
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @kaiyuanshe/openhackathon-service" ,
3
- "version" : " 0.21.0 " ,
3
+ "version" : " 0.21.1 " ,
4
4
"license" : " LGPL-3.0" ,
5
5
"author" : " shiy2008@gmail.com" ,
6
6
"description" : " RESTful API service scaffold based on Node.js & TypeScript" ,
25
25
"koa-mount" : " ^4.0.0" ,
26
26
"koa2-swagger-ui" : " ^5.10.0" ,
27
27
"koagger" : " ^0.3.0" ,
28
- "marked" : " ^14.1.1 " ,
28
+ "marked" : " ^14.1.2 " ,
29
29
"mobx-github" : " ^0.3.4" ,
30
30
"mobx-restful" : " ^1.0.1" ,
31
31
"pg" : " ^8.12.0" ,
44
44
"@types/koa" : " ^2.15.0" ,
45
45
"@types/koa-logger" : " ^3.1.5" ,
46
46
"@types/node" : " ^20.16.5" ,
47
- "@typescript-eslint/eslint-plugin" : " ^8.4 .0" ,
48
- "@typescript-eslint/parser" : " ^8.4 .0" ,
47
+ "@typescript-eslint/eslint-plugin" : " ^8.5 .0" ,
48
+ "@typescript-eslint/parser" : " ^8.5 .0" ,
49
49
"eslint" : " ^8.57.0" ,
50
50
"eslint-plugin-simple-import-sort" : " ^12.1.1" ,
51
51
"get-git-folder" : " ^0.1.2" ,
55
55
"lint-staged" : " ^15.2.10" ,
56
56
"prettier" : " ^3.3.3" ,
57
57
"sqlite3" : " ^5.1.7" ,
58
- "start-server-and-test" : " ^2.0.5 " ,
58
+ "start-server-and-test" : " ^2.0.7 " ,
59
59
"ts-jest" : " ^29.2.5" ,
60
60
"ts-node" : " ^10.9.2" ,
61
- "typescript" : " ~5.5.4 "
61
+ "typescript" : " ~5.6.2 "
62
62
},
63
63
"resolutions" : {
64
64
"native-file-system-adapter" : " npm:@tech_query/native-file-system-adapter@^3.0.1"
You can’t perform that action at this time.
0 commit comments