forked from danielyxie/bitburner
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.16 KB
/
Copy pathupdate.yml
File metadata and controls
39 lines (36 loc) · 1.16 KB
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
# Check out, build and push build to master branch.
# Currently, submitting a PR upstream is done manually.
name: Update Master to Latest Stable
on:
# run based on a remote webhook signal with type specified as "build", still need to test this
repository_dispatch:
types: [build]
# allow action to be triggered manually as well
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# check out master branch on this repo and set up node
- uses: actions/checkout@v3
with:
token: ${{ secrets.AUTH_TOKEN }}
ref: "master"
- uses: actions/setup-node@v3
with:
node-version: 16
# install, build, and commit
- run: |
git config --global user.email "bryan.michael.wolf@gmail.com"
git config --global user.name "Snarling"
rm -rf dist
git clone --branch stable https://github.com/bitburner-official/bitburner-src temp
cd temp
npm install
npm run build
mv .app/* ..
cd ..
git add dist
git add index.html
git commit -m "automated build commit"
git push origin