Merge pull request #51 from HQService/feat/velocity #129
This file contains 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: Upload to GitHub releases | |
on: | |
push: | |
branches: [ 'main' ] | |
jobs: | |
upload: | |
runs-on: [ ubuntu-latest ] | |
permissions: | |
id-token: write | |
contents: write | |
steps: | |
- name: Retrieve the repository | |
uses: actions/checkout@v3 | |
- name: Set outputs | |
id: vars | |
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
- name: Prepare JDK17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Prepare Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Make gradlew executable | |
run: chmod +x ./gradlew | |
- name: Make Jar | |
run: gradle shadowJar | |
- name: Release Tag | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.vars.outputs.sha_short }} | |
# name: ${{ github.event.repository.name }} | |
body: "${{ steps.vars.outputs.sha_short }}" | |
commit: ${{ github.sha }} | |
artifacts: 'build_outputs/*.jar' | |
generateReleaseNotes: true |