Skip to content

Commit

Permalink
Replace existing CI actions with the one from the .github repository
Browse files Browse the repository at this point in the history
Closes #40.
Replaced the maven build and package publish actions with the ones from the .github repository.
  • Loading branch information
the-c0d3br34k3r authored and silvs110 committed May 10, 2021
1 parent 2638089 commit 8e76147
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Maven build - MacOS latest
name: Maven build - clean test verify

on:
push:
Expand All @@ -11,17 +11,20 @@ on:

jobs:
build:

runs-on: macos-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# Other versions of java can be configured as well - https://github.com/actions/setup-java#basic
java: [14.0.1]
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Set up JDK 14
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '14.0.1'
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@v2
with:
Expand Down
32 changes: 0 additions & 32 deletions .github/workflows/maven_ubuntu.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/maven_windows.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/package_publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path

name: Publish to GitHub packages
name: Maven package and publish - package verify deploy

on:
release:
Expand Down Expand Up @@ -29,4 +29,4 @@ jobs:
- name: Publish to GitHub Packages Apache Maven
run: mvn deploy -e -X -s $GITHUB_WORKSPACE/settings.xml
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ github.token }}

0 comments on commit 8e76147

Please sign in to comment.