forked from Blumlaut/EasyAdmin
-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (34 loc) · 992 Bytes
/
build-bot.yml
File metadata and controls
40 lines (34 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build DJS Bot
on:
push:
branches: [ node-22, master ] # or the branch where changes are being pushed
jobs:
build-and-deploy:
runs-on: self-hosted
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js 22
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install dependencies
run: |
cd src/
npm install
- name: Build project
run: |
cd src/
npm run build
- name: Commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
if [ -z "$(git status -s)" ]; then
echo "No changes to commit"
else
git commit -m "chore(bot): deploy latest build" && git push
fi