Skip to content

Commit

Permalink
ci: Create GutHub release automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
osipxd committed Aug 1, 2024
1 parent 392be4d commit 1a30bc2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ jobs:
run: |
tag=${GITHUB_REF#refs/tags/}
module=$(./scripts/get-module-name.sh "$tag")
module_path=${module#:}
module_path=${module_path//://}
echo "module=$module" >> "$GITHUB_OUTPUT"
echo "module_path=$module_path" >> "$GITHUB_OUTPUT"
echo "name=${tag/-v/ }" >> "$GITHUB_OUTPUT"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
Expand All @@ -68,3 +72,15 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_githubPackagesUsername: ${{ github.actor }}
ORG_GRADLE_PROJECT_githubPackagesPassword: ${{ secrets.GITHUB_TOKEN }}

- name: Extract release notes
uses: ffurrer2/extract-release-notes@v2
with:
changelog_file: ${{ steps.parse-tag.outputs.module_path }}/CHANGELOG.md
release_notes_file: RELEASE_NOTES.md

- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
name: ${{ steps.parse-tag.outputs.name }}
body_path: RELEASE_NOTES.md

0 comments on commit 1a30bc2

Please sign in to comment.