mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
set env variable early
This commit is contained in:
parent
e1c794403c
commit
35c67e4207
1 changed files with 6 additions and 2 deletions
8
.github/workflows/gradle.yml
vendored
8
.github/workflows/gradle.yml
vendored
|
|
@ -66,6 +66,12 @@ jobs:
|
|||
if: ${{ github.event_name != 'release' && success() }}
|
||||
run: echo "SMALL_COMMIT_HASH=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_ENV
|
||||
|
||||
- name: Prepare release env variable
|
||||
if: ${{ github.event_name != 'release' && success() }}
|
||||
run: |
|
||||
echo "RELEASE_CHANGELOG=${{ github.event.release.body }}" >> $GITHUB_ENV
|
||||
echo "IS_GITHUB_PRERELEASE=${{ github.event.release.prerelease }}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build with Gradle Wrapper
|
||||
run: ./gradlew build --parallel --stacktrace
|
||||
|
||||
|
|
@ -114,7 +120,5 @@ jobs:
|
|||
- name: Hangar release
|
||||
if: ${{ (github.event_name != 'release' || github.event_name != 'push') && github.repository_owner == 'alexcrea' && success() }}
|
||||
env:
|
||||
RELEASE_CHANGELOG: ${{ github.event.release.body }}
|
||||
IS_GITHUB_PRERELEASE: ${{ github.event.release.prerelease }}
|
||||
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }}
|
||||
run: ./gradlew publishAllPublicationsToHangar --stacktrace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue