File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ☁️ Deploy (Square Cloud)
2+
3+ on :
4+ push :
5+ branches :
6+ - SoulKitten
7+
8+ jobs :
9+ publish-production :
10+ name : Publish
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout
15+ uses : actions/checkout@v3
16+
17+ - name : Setup Node.js
18+ uses : actions/setup-node@v3
19+ with :
20+ node-version : ' 20'
21+
22+ - name : Install dependencies
23+ run : npm install
24+
25+ - name : Build
26+ run : npm run build
27+
28+ - name : Create squarecloud.config
29+ run : |
30+ echo "DISPLAY_NAME=SoulKitten" > squarecloud.config
31+ echo "MAIN=build/main.js" >> squarecloud.config
32+ echo "VERSION=recommended" >> squarecloud.config
33+ echo "MEMORY=1024" >> squarecloud.config
34+ echo "AUTORESTART=true" >> squarecloud.config
35+ echo "DESCRIPTION=Nothing to say about this app" >> squarecloud.config
36+ echo "START=npm run start" >> squarecloud.config
37+
38+ - name : Create .env file from secrets
39+ run : |
40+ echo "DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}" > .env
41+ echo "GEMINI_TOKEN=${{ secrets.GEMINI_TOKEN }}" >> .env
42+ echo "MONGO_URL=${{ secrets.MONGO_URL }}" >> .env
43+
44+ - name : Setup Square Cloud
45+ uses : squarecloudofc/github-action@v2
46+ with :
47+ command : commit ${{ secrets.SQUARE_APPLICATION_ID }} --restart
48+ token : ' ${{ secrets.SQUARE_TOKEN }}'
You can’t perform that action at this time.
0 commit comments