Merge remote-tracking branch 'origin/1.15.2-forge' into 1.16.5-forge #1087
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: 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 |