Created
July 20, 2020 23:46
-
-
Save acmlira/8d7c71d8102b6810d571104fb9acb7e3 to your computer and use it in GitHub Desktop.
Java CI with Maven code snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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