We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471ef2b commit 9bbc2cfCopy full SHA for 9bbc2cf
.github/workflows/deploy.yml
@@ -1,6 +1,8 @@
1
-name: Build, Test and Deploy Discord Bot to VPS but shorter
+name: Build, Test and Deploy Discord Bot to VPS
2
3
on:
4
+ push:
5
+ branches: [ "main" ]
6
workflow_dispatch: # Allow manual deployment
7
8
jobs:
@@ -27,6 +29,13 @@ jobs:
27
29
git checkout main
28
30
git pull origin main
31
32
+ # Create .env.local file with secrets
33
+ cat > .env.local << EOF
34
+ DISCORD_TOKEN=${{ secrets.DISCORD_TOKEN }}
35
+ CLIENT_ID=${{ secrets.CLIENT_ID }}
36
+ NODE_VERSION=$(cat .nvmrc | tr -d 'v')
37
+ EOF
38
+
39
# Stop any existing containers
40
docker-compose down || true
41
0 commit comments