GitHub Actions: initial commit

This commit is contained in:
Karl Tauber
2020-11-21 00:19:46 +01:00
parent ccd4f99aea
commit 4fe707e519
2 changed files with 25 additions and 1 deletions

23
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: CI
on:
push:
branches: [github-actions]
pull_request:
branches: [github-actions]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build

View File

@@ -22,8 +22,9 @@ before_install:
stages: stages:
- name: test - name: test
if: branch = disabled
- name: snapshot - name: snapshot
if: branch = master AND type IN (push) AND tag IS blank if: branch = disabled AND type IN (push) AND tag IS blank
- name: release - name: release
if: type IN (push) AND tag IS present if: type IN (push) AND tag IS present