Skip to content

Commit

Permalink
ci: Simpler release creation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospereira committed Nov 28, 2023
1 parent 484f7c7 commit faad4f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,10 @@ jobs:
packages: read # to preserve default permissions
steps:
- uses: actions/checkout@v4
- name: Set up Gradle and Java
uses: ./.github/gradle-action
- name: Create Github Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
run: |
RELEASE_TITLE=$(gradle releaseDate --quiet)
RELEASE_TITLE=$(date '+%Y %b %d %H:%M:%S')
TAG_NAME="v${{ github.run_number }}-$(git log HEAD -1 --pretty=format:'%h')"
gh release create "$TAG_NAME" --title "$RELEASE_TITLE" --generate-notes --latest
- name: Gradle Tasks Summary
run: cat build/reports/build-times.md >> $GITHUB_STEP_SUMMARY
gh release create "$TAG_NAME" --title "$RELEASE_TITLE" --generate-notes --latest

0 comments on commit faad4f3

Please sign in to comment.