1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-24 06:03:28 +00:00

Improve our CI artifacts

- Publish Forge and Fabric
 - Include version hash in the download
This commit is contained in:
Jonathan Coates 2023-01-01 15:04:25 +00:00
parent 7b6caf76e4
commit 8ea5b64f64
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06

View File

@ -38,11 +38,17 @@ jobs:
# These are a little flaky on GH actions: its useful to run them, but don't break the build.
continue-on-error: true
- name: Prepare Jars
run: |
# Find the main jar and append the git hash onto it.
mkdir -p jars
find projects/forge/build/libs projects/fabric/build/libs -type f -regex '.*[0-9.]+\(-SNAPSHOT\)?\.jar$' -exec bash -c 'cp {} "jars/$(basename {} .jar)-$(git rev-parse HEAD).jar"' \;
- name: Upload Jar
uses: actions/upload-artifact@v3
with:
name: CC-Tweaked
path: projects/forge/build/libs
path: ./jars
- name: Upload coverage
uses: codecov/codecov-action@v3