-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 1.65 KB
/
aggregator.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Cactusd-Agro
on:
# push:
# branches:
# - dev
schedule:
# every 12 hours
- cron: "0 */12 * * *"
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
# checkout all branches
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install Python dependencies
run: |
sudo python3 -m pip install pybadges
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Install Go dependencies
run: |
go version
go install
- name: Build
run: go build -o cactusd -v .
- name: Generate lists
run: |
sudo ./cactusd -generate
ls .
sudo python3 addits/badges.py
sudo cp -rf public/files/*.svg /tmp
sudo cp -rf public/files/*.txt /tmp
- name: Remove remote data branch
if: ${{ success() }}
run: |
git config user.name github-actions
git config user.email [email protected]
git push origin :data
- name: Checkout
if: ${{ success() }}
run: |
git checkout --orphan data
git rm -rf .
sudo rm -rf download merged public upload cactusd
cp -rf /tmp/*.txt .
cp -rf /tmp/*.svg .
- name: Add files
if: ${{ success() }}
run: |
git add .
- name: Commit Push
if: ${{ success() }}
run: |
git commit -m "blocklist generated"
git push origin data