ci: add gradle-semantic-release-plugin and remove the github release assets

This commit is contained in:
she11sh0cked 2022-03-20 19:32:20 +01:00 committed by oSumAtrIX
parent 7f5f3b217d
commit 7b6a61b674
No known key found for this signature in database
GPG key ID: A9B3094ACDB604B4
2 changed files with 8 additions and 13 deletions

View file

@ -3,7 +3,9 @@ on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
jobs:
release:
name: Release
@ -28,7 +30,7 @@ jobs:
- name: Build with Gradle
run: ./gradlew build
- name: Setup semantic-release
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog -D
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -10,23 +10,16 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"gradle-semantic-release-plugin",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
"CHANGELOG.md",
"gradle.properties"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "release/**"
}
]
}
]
"@semantic-release/github"
]
}