Update gradle actions #9
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Draft Release | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| jobs: | |
| create-draft-release: | |
| name: Create Github Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Clone | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Fetch all git refs | |
| run: | | |
| git fetch --tags --all | |
| - name: Setup java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| cache-cleanup: always | |
| - name: Generate changelog | |
| uses: eskatos/gradle-command-action@v1 | |
| with: | |
| arguments: generateChangelog --stacktrace | |
| - name: Create draft release | |
| id: create_release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ github.ref }} | |
| release_name: ${{ github.ref }} | |
| draft: true | |
| prerelease: false | |
| body_path: build/changelog.md | |
| - name: Output release url file | |
| run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt | |
| - name: Save Release URL File for publish | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release_url | |
| path: release_url.txt |