Skip to content

Merge pull request #6 from Nlkomaru/dependabot/gradle/com.github.Revx… #10

Merge pull request #6 from Nlkomaru/dependabot/gradle/com.github.Revx…

Merge pull request #6 from Nlkomaru/dependabot/gradle/com.github.Revx… #10

name: Gradle Build Action
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Change wrapper permissions
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build
- name: Create a GitHub release
id: create_release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/libs/NoticeTemplate-1.0-SNAPSHOT-all.jar # change name of artifact
asset_name: NoticeTemplate_${{ steps.tag_version.outputs.new_tag }}.jar # change name of artifact
asset_content_type: application/jar