Skip to content

Instantly share code, notes, and snippets.

@acmlira
Created July 20, 2020 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acmlira/8d7c71d8102b6810d571104fb9acb7e3 to your computer and use it in GitHub Desktop.
Save acmlira/8d7c71d8102b6810d571104fb9acb7e3 to your computer and use it in GitHub Desktop.
Java CI with Maven code snippet
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: mvn package
- name: Archive results
uses: actions/upload-artifact@v1
with:
name: artifacts
path: target/install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment