mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-03-24 09:32:22 -04:00
package: split manifest uploading into it's own job
This commit is contained in:
44
.github/workflows/build.yml
vendored
44
.github/workflows/build.yml
vendored
@@ -5,12 +5,12 @@ on:
|
||||
description: "List of plugins to build, or 'ALL'"
|
||||
required: false
|
||||
COMMIT_RANGE:
|
||||
description: "Commit range to build 1234abc...5689def"
|
||||
description: "Commit range to build 1234abc..5689def"
|
||||
required: false
|
||||
push:
|
||||
pull_request:
|
||||
jobs:
|
||||
execute:
|
||||
build:
|
||||
# any forks that predate this repo having an action will have actions
|
||||
# enabled by default, which will fail in a lot of cases because the branch
|
||||
# is new, which makes the differential build fail
|
||||
@@ -28,7 +28,7 @@ jobs:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: package-2.0.1
|
||||
key: package-2.0.2
|
||||
- name: prepare
|
||||
run: |
|
||||
pushd package
|
||||
@@ -38,7 +38,6 @@ jobs:
|
||||
env:
|
||||
REPO_CREDS: ${{ secrets.REPO_CREDS }}
|
||||
REPO_ROOT: ${{ secrets.REPO_ROOT }}
|
||||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
||||
# workflow_dispatch
|
||||
FORCE_BUILD: ${{ github.event.inputs.FORCE_BUILD }}
|
||||
COMMIT_RANGE: ${{ github.event.inputs.COMMIT_RANGE }}
|
||||
@@ -55,4 +54,39 @@ jobs:
|
||||
else
|
||||
export PACKAGE_COMMIT_RANGE="${COMMIT_RANGE:-${COMMIT_BEFORE:+$COMMIT_BEFORE...$COMMIT_AFTER}}"
|
||||
fi
|
||||
java -XX:+UseParallelGC -jar package/package/build/libs/package.jar
|
||||
exec java -XX:+UseParallelGC -cp package/package/build/libs/package.jar net.runelite.pluginhub.packager.Packager
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: manifest_diff
|
||||
path: /tmp/manifest_diff
|
||||
retention-days: 1
|
||||
upload:
|
||||
if: (github.event_name != 'push' || github.repository_owner == 'runelite') && github.event_name != 'pull_request'
|
||||
needs: build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- uses: actions/cache@v2
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches/
|
||||
~/.gradle/wrapper/
|
||||
key: upload-2.0.2
|
||||
- uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: manifest_diff
|
||||
path: /tmp
|
||||
- name: upload
|
||||
env:
|
||||
REPO_CREDS: ${{ secrets.REPO_CREDS }}
|
||||
REPO_ROOT: ${{ secrets.REPO_ROOT }}
|
||||
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
|
||||
run: |
|
||||
pushd package
|
||||
./gradlew :upload:run
|
||||
popd
|
||||
Reference in New Issue
Block a user