Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
temporarily disable data gen in release workflow
Browse files Browse the repository at this point in the history
[skip build]
  • Loading branch information
rlnt committed Sep 29, 2022
1 parent 0e2cedb commit 3e9c505
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -38,21 +38,21 @@ jobs:
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v1

- name: Check existing DataGen
run: |
test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
echo "cache_exists=$?" >> $GITHUB_ENV
- name: Save old DataGen state
if: ${{ env.cache_exists }}
run: mv ./src/generated/resources/.cache ./src/generated/cache_old

- name: Generate assets
run: ./gradlew runData --stacktrace

- name: Validate assets
if: ${{ env.cache_exists }}
run: diff -q ./src/generated/cache_old/cache ./src/generated/resources/.cache/cache
# - name: Check existing DataGen
# run: |
# test -d ./src/generated -a -f ./src/generated/resources/.cache/cache
# echo "cache_exists=$?" >> $GITHUB_ENV
#
# - name: Save old DataGen state
# if: ${{ env.cache_exists }}
# run: mv ./src/generated/resources/.cache ./src/generated/cache_old
#
# - name: Generate assets
# run: ./gradlew runData --stacktrace
#
# - name: Validate assets
# if: ${{ env.cache_exists }}
# run: diff -q ./src/generated/cache_old/cache ./src/generated/resources/.cache/cache

- name: Assemble the jar
run: ./gradlew assemble

0 comments on commit 3e9c505

Please sign in to comment.