Skip to content

Commit

Permalink
Create ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wtlgo authored Nov 26, 2023
1 parent 453d36b commit 470e97c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Java CI
on: [ push ]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
java-version: '17'
distribution: 'adopt'
- name: Get Commit Data
id: commit
uses: prompt/[email protected]
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Change Wrapper Permissions
run: chmod +x ./gradlew
- name: Gradle Build
uses: gradle/[email protected]
with:
arguments: shadowJar --scan
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: dev-${{ steps.commit.outputs.short }}
- uses: actions/[email protected]
with:
name: MikChanNoMOTD-dev-${{ steps.commit.outputs.short }}.zip
path: |
build/libs/
LICENSE.txt

0 comments on commit 470e97c

Please sign in to comment.