mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-25 09:54:32 +00:00
Tweak: GitHub Action
This commit is contained in:
1 parent
013c22ae95
commit
f0012b58df
3 files changed
+1
-1
No files matched your search
@@ -0,0 +1,37 @@
|
||||
name: release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '14-develop'
|
||||
- '15-develop'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
-
|
||||
name: Set up JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '8'
|
||||
cache: 'gradle'
|
||||
-
|
||||
name: Build
|
||||
run: |
|
||||
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $GITHUB_SHA)
|
||||
./gradlew clean build --stacktrace
|
||||
-
|
||||
name: Publish
|
||||
run: |
|
||||
export GIT_COMMIT_DESC=$(git log --format=%B -n 1 $GITHUB_SHA)
|
||||
# ./gradlew upload --info --stacktrace
|
||||
# ./gradlew publishGprPublicationToGitHubPackagesRepository
|
||||
-
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: develop-build
|
||||
path: build/libs
|
||||
Reference in new issue
Block a user