Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cam72cam committed Dec 20, 2023
1 parent b2df5ef commit 4a4200d
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,12 @@ jobs:
java-version: 1.8
- name: keyscan
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts
- name: secrets
env:
MAVENCI: ${{ secrets.MAVENCI }}
run: echo "${MAVENCI}" >> publish_key
- name: Install deps
run: sudo apt install -y pngquant findutils xvfb
- name: Setup Universal Mod Core (and helpers)
env:
BRANCH: ${{ matrix.branch }}
run: ./gradlew umc -D umc.loader=${BRANCH} -D ssh.http=true -Dtarget=release
- name: Hack Forge Gradle
run: mkdir -p ~/.gradle/caches/minecraft/; wget 'https://teamopenindustry.cc/maven/hack/ForgeGradleVersion.json' -O ~/.gradle/caches/minecraft/ForgeGradleVersion.json
run: java -jar UMCSetup.jar ${BRANCH} https
- name: Gradle compile
run: ./gradlew classes
- name: Process images
Expand All @@ -36,11 +30,10 @@ jobs:
run: xvfb-run --auto-servernum ./gradlew runData || xvfb-run --auto-servernum ./gradlew runData || true
- name: Gradle build
run: ./gradlew build -Dtarget=release
- name: Gradle uploadArchives
run: ./gradlew uploadArchives -Dtarget=release
- name: cleanup
run: rm publish_key
- name: Gradle publish
env:
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }}
run: ./gradlew publish -Dtarget=release
- uses: actions/upload-artifact@v2
with:
name: Immersive Railroading ${{matrix.branch}}
path: build/libs/ImmersiveRailroading-${{matrix.branch}}-*

0 comments on commit 4a4200d

Please sign in to comment.