From a1efb251c81c66e216c020b2ff054c7282ba7eab Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Wed, 15 Dec 2021 21:52:40 +0100 Subject: [PATCH] Add CI --- .github/workflows/releases.yaml | 46 +++++++++++++++++++++++++++++++++ pom.xml | 6 ++--- 2 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/releases.yaml diff --git a/.github/workflows/releases.yaml b/.github/workflows/releases.yaml new file mode 100644 index 0000000..3594292 --- /dev/null +++ b/.github/workflows/releases.yaml @@ -0,0 +1,46 @@ +name: build-and-release + +on: push + +defaults: + run: + shell: bash + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 8 + java-package: jdk+fx + + - name: Build + run: mvn clean package + + - name: Upload binary + uses: actions/upload-artifact@v2 + with: + name: Binary + path: target/MiMaDebugger.jar + + release: + runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/v') + needs: build + steps: + + - name: Download binaries + uses: actions/download-artifact@v2 + with: + name: Binary + + - name: Create release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: | + MiMaDebugger.jar diff --git a/pom.xml b/pom.xml index 13179f1..51c5b14 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ maven-compiler-plugin - 3.8.0 + 3.8.1 8 8 @@ -33,7 +33,7 @@ maven-shade-plugin - 3.2.0 + 3.2.4 shade @@ -167,4 +167,4 @@ - \ No newline at end of file +