-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (39 loc) · 1.01 KB
/
run-build.yml
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
41
42
43
44
45
46
47
48
49
50
name: run-build
on:
push:
branches:
- main
jobs:
build-all:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm ic
- name: Run build
run: |
mkdir dist
npm run build
npm run build:csgo
- name: Copy files to dist
run: cp LICENSE README.md dist
- name: Configure git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git fetch --all
git checkout --track origin/build
- name: Copy dist to root
run: cp -rf ./dist/* ./
- name: Commit files
run: |
git add *.d.ts
git add README.md
git push
git commit -m "Automated build on ${{ github.ref }}"
git push origin build