Skip to content

Commit 5d22d97

Browse files
Add CHANGELOG.md and GitHub Actions for release and deploy
1 parent 3ac77ac commit 5d22d97

File tree

3 files changed

+140
-0
lines changed

3 files changed

+140
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Deploy to server
12+
uses: appleboy/ssh-action@v1.0.3
13+
with:
14+
host: ${{ secrets.SSH_HOST }}
15+
username: ${{ secrets.SSH_USER }}
16+
key: ${{ secrets.SSH_KEY }}
17+
port: ${{ secrets.SSH_PORT }}
18+
script: |
19+
cd ~/.sopel
20+
git pull origin master
21+
sudo systemctl restart sopel.service
22+
echo "Deployed and restarted sopel"

.github/workflows/release.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [master]
6+
paths:
7+
- 'CHANGELOG.md'
8+
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Get version from CHANGELOG
20+
id: version
21+
run: |
22+
VERSION=$(grep -m1 '^### ' CHANGELOG.md | sed 's/### \([0-9.]*\).*/\1/')
23+
echo "version=$VERSION" >> $GITHUB_OUTPUT
24+
echo "Found version: $VERSION"
25+
26+
- name: Check if release exists
27+
id: check
28+
run: |
29+
if gh release view "v${{ steps.version.outputs.version }}" > /dev/null 2>&1; then
30+
echo "exists=true" >> $GITHUB_OUTPUT
31+
else
32+
echo "exists=false" >> $GITHUB_OUTPUT
33+
fi
34+
env:
35+
GH_TOKEN: ${{ github.token }}
36+
37+
- name: Extract release notes
38+
if: steps.check.outputs.exists == 'false'
39+
id: notes
40+
run: |
41+
# Extract notes for this version (between first and second ### headers)
42+
NOTES=$(awk '/^### [0-9]/{if(p) exit; p=1; next} p' CHANGELOG.md)
43+
echo "notes<<EOF" >> $GITHUB_OUTPUT
44+
echo "$NOTES" >> $GITHUB_OUTPUT
45+
echo "EOF" >> $GITHUB_OUTPUT
46+
47+
- name: Create release
48+
if: steps.check.outputs.exists == 'false'
49+
run: |
50+
gh release create "v${{ steps.version.outputs.version }}" \
51+
--title "v${{ steps.version.outputs.version }}" \
52+
--notes "${{ steps.notes.outputs.notes }}"
53+
env:
54+
GH_TOKEN: ${{ github.token }}

CHANGELOG.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
### 2.0.0: 2026-01-22
2+
3+
* Add GitHub Actions for automatic releases and deployment
4+
* Add dual model setup: gemini-3-flash for main, lite for helpers
5+
* Add retry logic with progressive delays and error details
6+
* Reduce token usage: memory 10/500, context 600
7+
* Disable auto-memory, use manual memories only
8+
* Fix bot referring to itself in third person
9+
* Strip :) and ;) randomly with 50% probability
10+
11+
### 1.9.0: 2026-01-17
12+
13+
* Switch to OpenRouter API with Google Gemini models
14+
* Add comprehensive Latin-only emoticon list
15+
* Add time awareness to responses
16+
* Add flood protection with 3s cooldown per user
17+
* Fix context handling and user attribution
18+
19+
### 1.8.0: 2026-01-16
20+
21+
* Add AI-based log search with automatic file selection
22+
* Add memory consolidation with batching
23+
* Add frequency/presence penalty to reduce repetition
24+
25+
### 1.7.0: 2026-01-15
26+
27+
* Add auto memory extraction
28+
* Add Finnish holidays to daily messages
29+
* Add AI-categorized oraakkeli answers
30+
31+
### 1.6.0: 2026-01-14
32+
33+
* Add nickname recognition
34+
* Add disk monitor and error handler
35+
* Add explicit no-repeat instructions
36+
37+
### 1.5.0: 2025-12-01
38+
39+
* Add long-term memory feature
40+
* Add random participation when not mentioned
41+
* Add cooldown period and summary feature
42+
43+
### 1.4.0: 2025-11-01
44+
45+
* Add OpenAI-powered bot
46+
* Add scheduler for timed messages
47+
48+
### 1.3.0: 2025-10-01
49+
50+
* Rewrite weather module for Foreca
51+
* Add autokick and ruuvitag weather
52+
53+
### 1.2.0: 2025-09-01
54+
55+
* Add chatterbot with MongoDB
56+
* Add megahal and randomline
57+
58+
### 1.1.0: 2025-08-01
59+
60+
* Add trivia, fingerpori, tvmaze, YouTube search
61+
62+
### 1.0.0: 2025-07-01
63+
64+
* Initial release with FMI weather, horoscope, battle, jokes

0 commit comments

Comments
 (0)