Skip to content

Commit 52dbeaf

Browse files
committed
add about link to botcheck page
1 parent ef4aa82 commit 52dbeaf

3 files changed

Lines changed: 68 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v6
17+
18+
- name: Set up Go
19+
uses: actions/setup-go@v6
20+
with:
21+
go-version-file: 'lookup/go.mod'
22+
23+
- name: Build lookup tool
24+
run: make lookup
25+
26+
- name: Install dependencies for update script
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y jq curl
30+
31+
- name: Download newest IP addresses
32+
run: ./update-bot-addresses.sh
33+
34+
- name: Create release archive
35+
run: |
36+
mkdir -p release
37+
tar -czf release/apache.tar.gz apache/
38+
zip -r release/apache.zip apache/
39+
40+
- name: Create GitHub Release
41+
uses: softprops/action-gh-release@v2
42+
with:
43+
files: |
44+
release/apache.tar.gz
45+
release/apache.zip
46+
body: |
47+
Release of botcheck apache directory.
48+
49+
This release includes:
50+
- The compiled lookup tool
51+
- Updated IP addresses from official bot sources
52+
- All apache configuration files
53+
54+
Extract the archive and deploy the contents to your Apache server.
55+
draft: false
56+
prerelease: false
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010

1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v6
1414

1515
- name: Set up Go
1616
uses: actions/setup-go@v6

apache/botcheck.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@
4242
h1 {
4343
margin-top: 0;
4444
}
45+
46+
small {
47+
text-align: right;
48+
display: block;
49+
margin-top: 40px;
50+
opacity: 0.7;
51+
}
4552
</style>
4653
</head>
4754
<body>
@@ -60,6 +67,8 @@ <h1>Are you Human?</h1>
6067
<noscript>
6168
<p>No JavaScript, relying on referrer header.</p>
6269
</noscript>
70+
71+
<small>Powered by splitbrain's <a href="https://github.com/splitbrain/botcheck">botcheck</a>.</small>
6372
</div>
6473

6574
<script>

0 commit comments

Comments
 (0)