Skip to content

Commit 9e47dc8

Browse files
author
root
committed
Add github actions ymls
1 parent 13b7b1c commit 9e47dc8

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/build.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "build"
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up JDK 1.8
11+
uses: actions/setup-java@v1
12+
with:
13+
java-version: 1.8
14+
- name: Build with Gradle
15+
run: ./gradlew clean build

.github/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "release"
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Set up JDK 1.8
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 1.8
17+
- name: Build with Gradle
18+
run: ./gradlew clean build
19+
- uses: "marvinpinto/action-automatic-releases@latest"
20+
with:
21+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
22+
prerelease: false
23+
files: |
24+
./build/libs/xlr-ansible-automation-controller-plugin-*.jar

0 commit comments

Comments
 (0)