Skip to content

Fix mcmod version #1081

Fix mcmod version

Fix mcmod version #1081

Workflow file for this run

name: Universal Mod Core CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
- uses: actions/upload-artifact@v2-preview
with:
name: UniversalModCore-${{ env.ref }}
path: build/libs/UniversalModCore-*.jar