Tweak: GitHub Action

This commit is contained in:
33 committed 2023-01-04 13:50:38 +08:00
1 parent 013c22ae95
commit f0012b58df
3 files changed
+1 -1

No files matched your search

+37
View File
@@ -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