Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Al-Istannen committed Dec 15, 2021
1 parent 0fe6786 commit a1efb25
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 3 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<version>3.8.1</version>
<configuration>
<target>8</target>
<source>8</source>
Expand All @@ -33,7 +33,7 @@

<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.4</version>
<executions>
<execution>
<id>shade</id>
Expand Down Expand Up @@ -167,4 +167,4 @@
</dependency>
</dependencies>

</project>
</project>

0 comments on commit a1efb25

Please sign in to comment.