Skip to content

Commit

Permalink
Fix jar not including generated data
Browse files Browse the repository at this point in the history
  • Loading branch information
ramidzkh committed May 20, 2022
1 parent 92d39f6 commit 9975a36
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Generate data
run: ./gradlew downloadAssets runData --max-workers 1
- name: Build
run: ./gradlew downloadAssets runData build --max-workers 1
run: ./gradlew build --max-workers 1
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
types:
- published

permissions:
contents: write

jobs:
publish:
runs-on: ubuntu-20.04
Expand All @@ -17,19 +20,19 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 17
- name: Generate data
run: ./gradlew downloadAssets runData --max-workers 1
env:
APPMEK_VERSION: ${{ github.event.release.tag_name }}
- name: Build
run: ./gradlew downloadAssets runData build --max-workers 1
run: ./gradlew build --max-workers 1
env:
APPMEK_VERSION: ${{ github.event.release.tag_name }}
- name: Upload Release Artifact
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build/libs/Applied-Mekanistics-${{ github.event.release.tag_name }}.jar
asset_name: appmek-${{ github.event.release.tag_name }}.jar
asset_content_type: application/zip
files: build/libs/Applied-Mekanistics-${{ github.event.release.tag_name }}.jar
tag_name: ${{ github.event.release.tag_name }}
- name: Upload to CurseForge
run: ./gradlew curseforge --max-workers 1
env:
Expand Down

0 comments on commit 9975a36

Please sign in to comment.