forked from TheBusyBiscuit/builds
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.02 KB
/
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: EfinaBot
on:
# Manual workflow trigger
workflow_dispatch: {}
# Run every ~10 minutes
schedule:
- cron: '*/10 * * * *'
jobs:
runner:
name: Automatic project builder
runs-on: ubuntu-latest
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
steps:
- name: Checking out Repository
uses: actions/checkout@v3.5.3
with:
ref: gh-pages
- name: Setting up Java 17
uses: actions/setup-java@v3.11.0
with:
distribution: 'adopt'
java-version: '17'
java-package: jdk
architecture: x64
- name: Setting up node.js
uses: actions/setup-node@v3.6.0
with:
node-version: '16.6.0'
- name: Installing dependencies
run: npm install
- name: Setting up git environment
run: sh src/setup.sh
env:
LOGIN_EMAIL: ${{ secrets.LOGIN_EMAIL }}
- name: Running builds program
# continue-on-error: true
run: node src/single-run.js
env:
JSON_CONFIG: ${{ secrets.JSON_CONFIG }}