25 lines
619 B
YAML
25 lines
619 B
YAML
name: learn-github-actions
|
|
run-name: ${{ github.actor }} is learning GitHub Actions
|
|
on: [push, pull_request]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17 for x64
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'temurin'
|
|
architecture: x64
|
|
cache: maven
|
|
|
|
- name: mvn build package
|
|
run: mvn build package
|
|
|
|
- run: mkdir staging && cp target/*.jar staging
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Package
|
|
path: staging
|