chore(release): prepare for v1.0.1 #4
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: Continuous Deployment | |
| on: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| generate-changelog: | |
| name: Generate changelog | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| changelog_body: ${{ steps.git-cliff.outputs.content }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Generate a changelog | |
| uses: orhun/git-cliff-action@main | |
| id: git-cliff | |
| with: | |
| config: cliff.toml | |
| args: -vv --latest --no-exec --github-repo ${{ github.repository }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| publish: | |
| name: Build and publish shadowJar | |
| needs: generate-changelog | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Build with Gradle | |
| run: ./gradlew shadowDistTar shadowDistZip | |
| - name: Move to out dir | |
| run: | | |
| mkdir -p out | |
| mv build/distributions/* out/ | |
| mv build/libs/* out/ | |
| - name: Upload Binaries to Release | |
| uses: svenstaro/upload-release-action@v2 | |
| with: | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} | |
| tag: ${{ github.ref }} | |
| body: ${{ needs.generate-changelog.outputs.changelog_body }} | |
| file: out/* | |
| file_glob: true | |
| overwrite: true |