mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2024-11-22 19:24:53 +08:00
29 lines
791 B
YAML
29 lines
791 B
YAML
|
name: assembly-run.yml
|
||
|
on: [workflow_call]
|
||
|
jobs:
|
||
|
build:
|
||
|
uses: ./.github/workflows/build.yml
|
||
|
assembly:
|
||
|
needs: [build]
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: "Setup cached built project"
|
||
|
uses: actions/cache/restore@v4
|
||
|
with:
|
||
|
path: "./"
|
||
|
key: ${{ runner.os }}-build-${{ github.sha }}
|
||
|
fail-on-cache-miss: 'true'
|
||
|
- name: "Setup Java 21 with SBT"
|
||
|
uses: actions/setup-java@v4
|
||
|
with:
|
||
|
java-version: '21'
|
||
|
distribution: 'temurin'
|
||
|
cache: sbt
|
||
|
- name: "Generate assembly jar"
|
||
|
run: sbt assembly
|
||
|
- name: "Publish assembly jar"
|
||
|
uses: actions/upload-artifact@v4
|
||
|
with:
|
||
|
name: 'assembly-jar'
|
||
|
path: ./morny-coeur/target/*-assembly-*.jar
|