Skip to content

Commit

Permalink
Ajout github actions
Browse files Browse the repository at this point in the history
gradlew executable
  • Loading branch information
Yann151924 committed Jan 9, 2022
1 parent d950e52 commit 43b26f1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Java CI
on:
push:
tags:
- '*'
jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3)

- name: Build with Gradle
run: ./gradlew clean shadowJar

- name: Upload bukkit to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bukkit/build/libs/AurionChat-bukkit-${{ steps.get_version.outputs.VERSION }}-all.jar
asset_name: AurionChat-bukkit-${{ steps.get_version.outputs.VERSION }}-all.jar
tag: ${{ github.ref }}
overwrite: true
- name: Upload sponge to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sponge/build/libs/AurionChat-sponge-${{ steps.get_version.outputs.VERSION }}-all.jar
asset_name: AurionChat-sponge-${{ steps.get_version.outputs.VERSION }}-all.jar
tag: ${{ github.ref }}
overwrite: true
Empty file modified gradlew
100644 → 100755
Empty file.

0 comments on commit 43b26f1

Please sign in to comment.