Skip to content

Commit 5f8b5dd

Browse files
committed
feat: add semantic release
1 parent d9ef9a2 commit 5f8b5dd

File tree

2 files changed

+28
-13
lines changed

2 files changed

+28
-13
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -83,28 +83,28 @@ jobs:
8383
name: app.apk
8484
path: app.apk
8585

86-
upload:
86+
release:
8787
needs: [build-server, build-app]
8888
runs-on: ubuntu-latest
8989

9090
steps:
91+
- uses: actions/checkout@v3
92+
9193
- name: 📦 - Copy server artifacts
9294
uses: actions/download-artifact@v4
9395
with:
94-
path: .
96+
path: artifacts/
9597
merge-multiple: true
9698

9799
- name: 🧐 - Display structure of downloaded artifacts
98-
run: ls -R
100+
run: ls -R artifacts/
99101

100-
- name: 🌠 - Release
101-
uses: ncipollo/release-action@v1.12.0
102+
- name: Semantic Release
103+
uses: cycjimmy/semantic-release-action@v4
102104
with:
103-
artifacts: "server-*,app.apk"
104-
token: ${{ secrets.GITHUB_TOKEN }}
105-
allowUpdates: true
106-
removeArtifacts: true
107-
artifactErrorsFailBuild: true
108-
prerelease: true
109-
name: Latest Pre-release
110-
tag: latest
105+
branches: |
106+
[
107+
'main',
108+
]
109+
env:
110+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.releaserc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
[
6+
"@semantic-release/github",
7+
{
8+
"assets": [
9+
{ "path": "artifacts/server-*" },
10+
{ "path": "artifacts/app.apk" }
11+
]
12+
}
13+
]
14+
]
15+
}

0 commit comments

Comments
 (0)