Updated translations #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create Artifact | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup jdk | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
cache: gradle | |
- name: gradle setup | |
uses: gradle/actions/setup-gradle@v3 | |
- name: gradle build | |
run: ./gradlew build --no-daemon | |
- name: set params | |
run: | | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^archives_base_name= >> $GITHUB_ENV | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^minecraft_version= >> $GITHUB_ENV | |
cat $GITHUB_WORKSPACE/gradle.properties | grep ^mod_version= >> $GITHUB_ENV | |
- name: set package name | |
run: echo "pkg_file=$archives_base_name-$mod_version.jar" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: Cobbledex-${{env.mod_version}}-${{env.minecraft_version}}_r${{github.run_number}} | |
path: | | |
forge/build/libs/*.jar | |
fabric/build/libs/*.jar | |
!**/*-dev.jar | |
!**/*-shadow.jar | |
!**/*-transformProduction*.jar |