This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
Minecon724 is learning GitHub Actions #1
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: 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 |