123456789101112131415161718192021222324252627282930 |
- name: Build and publish as artifact
- on:
- push:
- jobs:
- run:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 17
- uses: actions/setup-java@v1
- with:
- java-version: 17
- - uses: actions/cache@v2
- with:
- path: |
- ~/.gradle/caches
- ~/.gradle/wrapper
- key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
- restore-keys: |
- ${{ runner.os }}-gradle-
- - name: Build
- run: ./gradlew build
- - name: Upload artifacts
- uses: actions/upload-artifact@v2
- with:
- name: build-artifacts
- path: |
- forge/build/libs/ferritecore-*-forge.jar
- fabric/build/libs/ferritecore-*-fabric.jar
|