Skip to content

Commit 76aab24

Browse files
committed
feat: Add semantic release
1 parent b55c19f commit 76aab24

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,29 @@ jobs:
9393
sudo mv $HOME/.millennium/ext/data/cache/* $HOME/.millennium/
9494
sudo rm -rd $HOME/.millennium/ext
9595

96+
cd $HOME/
97+
tar -czf python-3.11.8-32-bit.tar.gz $HOME/.millennium/
98+
9699
- name: Upload Python 3.11.8 (32-bit) artifact
97100
uses: actions/upload-artifact@v4
98101
with:
99102
include-hidden-files: true
100103
name: python-3.11.8-32-bit
101104
path: /home/runner/.millennium/
105+
106+
- name: Set up Node.js
107+
uses: actions/setup-node@v3
108+
with:
109+
node-version: 20
110+
111+
- name: Install Semantic Release
112+
run: npm install --save-dev semantic-release @semantic-release/github @semantic-release/exec @semantic-release/changelog @semantic-release/git
113+
env:
114+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
115+
116+
- name: Create GitHub Release
117+
run: npx semantic-release
118+
env:
119+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120+
121+

.releaserc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"branches": [
3+
"main"
4+
],
5+
"plugins": [
6+
"@semantic-release/commit-analyzer",
7+
"@semantic-release/release-notes-generator",
8+
{
9+
"path": "@semantic-release/github",
10+
"assets": [
11+
"/home/runner/python-3.11.8-32-bit.tar.gz"
12+
]
13+
}
14+
]
15+
}

0 commit comments

Comments
 (0)