Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 32f5842

Browse files
authored
ci: configure semantic-release (#688)
* ci: no longer upload artifact in main workflow * ci: configure semantic-release * ci: only pass GITHUB_TOKEN * docs: remove guide on how to prepare a release
1 parent aec4985 commit 32f5842

File tree

7 files changed

+30
-105
lines changed

7 files changed

+30
-105
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ jobs:
3939
uses: gradle/wrapper-validation-action@v1
4040

4141
- name: Build with Gradle
42-
run: ./gradlew build
42+
run: ./gradlew check
43+
44+
- name: Install dependencies
45+
run: npm ci
46+
47+
- name: Release
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: npx semantic-release
4351

44-
- name: Upload distribution
45-
uses: actions/upload-artifact@v3
46-
with:
47-
name: API-Editor
48-
path: api-editor/backend/build/libs/*-all.jar
49-
if-no-files-found: error
5052

5153
build-package-parser:
5254
runs-on: ubuntu-latest

.github/workflows/tag.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

api-editor/backend/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tasks.withType<KotlinCompile> {
2828
}
2929

3030
tasks.withType<ShadowJar> {
31-
archiveFileName.set("${project.group}-${project.name}-${project.version}-all.jar")
31+
archiveFileName.set("${project.group}-${project.name}-all.jar")
3232
}
3333

3434
// Dependencies --------------------------------------------------------------------------------------------------------

docs/Development/README.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/Development/how-to-prepare-a-release.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

release.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
branches: ['main'],
3+
plugins: [
4+
['@semantic-release/commit-analyzer', { preset: 'conventionalcommits' }],
5+
['@semantic-release/release-notes-generator', { preset: 'conventionalcommits' }],
6+
[
7+
'@semantic-release/github',
8+
{
9+
assets: [
10+
{
11+
path: 'api-editor/backend/build/libs/*-all.jar',
12+
name: 'api-editor-${nextRelease.gitTag}.jar',
13+
label: 'API-Editor (${nextRelease.gitTag})',
14+
},
15+
],
16+
},
17+
],
18+
],
19+
};

tsconfig.eslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"compilerOptions": {
44
"noEmit": true
55
},
6-
"include": ["./.eslintrc.js", "./api-editor/gui/src/**/*", "./api-editor/gui/vite.config.ts"],
6+
"include": ["./.eslintrc.js", "release.config.js", "./api-editor/gui/src/**/*", "./api-editor/gui/vite.config.ts"],
77
"exclude": []
88
}

0 commit comments

Comments
 (0)