Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Commit e5e7e15

Browse files
committed
Update CI
1 parent 02bbeea commit e5e7e15

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/java_ci.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Java CI
2-
on: [push]
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
37
jobs:
48
build:
59
name: Build
6-
runs-on: windows-2019
10+
runs-on: ubuntu-latest
711
steps:
812
- name: 📦 Prepate Git Repo
913
uses: actions/checkout@v2
@@ -14,5 +18,5 @@ jobs:
1418
version: '11'
1519
architecture: x64
1620

17-
- name: 📦 Test with Maven
21+
- name: Test with Maven
1822
run: mvn test -fae

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Compile release
1+
name: Deploy to releases
22
on:
33
release:
44
types: [published]
@@ -26,4 +26,10 @@ jobs:
2626
path: |
2727
target/*.jar
2828
target/*.md5
29-
target/*.sha1
29+
target/*.sha1
30+
31+
- name: 🚀 Deploy to releases
32+
uses: AButler/[email protected]
33+
with:
34+
files: 'target/*.jar'
35+
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)