Skip to content

Universal Mod Core Release #49

Universal Mod Core Release

Universal Mod Core Release #49

Workflow file for this run

name: Universal Mod Core Release
on: [workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [1.7.10-forge, 1.10.2-forge, 1.11.2-forge, 1.12.2-forge, 1.14.4-forge, 1.15.2-forge, 1.16.5-forge]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
- uses: actions/setup-java@v1
with:
java-version: '1.8' # The JDK version to make available on the path.
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
architecture: x64 # (x64 or x86) - defaults to x64
- run: |
ref=`echo ${github_ref} | sed -e 's,refs/heads/,,' | tr '/' '-'`
echo $ref
echo "::set-env name=ref::$ref"
env:
github_ref: ${{ github.ref }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: keyscan
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts
- name: Gradle publish
env:
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }}
run: ./gradlew publish -Dtarget=release
- uses: actions/upload-artifact@v2-preview
with:
name: UniversalModCore-${{ env.ref }}
path: build/libs/UniversalModCore-*.jar