Merge pull request #23 from MikChanNoPlugins/dev/dev #143
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: Java CI | |
on: [ push ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Get Commit Data | |
id: commit | |
uses: pr-mpt/actions-commit-hash@v2 | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Change Wrapper Permissions | |
run: chmod +x ./gradlew | |
- name: Gradle Build | |
uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: shadowJar --scan | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: dev-${{ steps.commit.outputs.short }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: MikChanNoVoteReceiver-dev-${{ steps.commit.outputs.short }}.zip | |
path: | | |
build/libs/ | |
LICENSE.txt |