artifact uploading
This commit is contained in:
parent
94fb2901fa
commit
a86fddded9
|
@ -15,27 +15,27 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
name: Fetching branches
|
name: Fetching branches
|
||||||
with:
|
with:
|
||||||
ref: 'fabric'
|
ref: 'fabric'
|
||||||
- name: Set up JDK 1.8
|
- name: Set up JDK 1.8
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 1.8
|
java-version: 1.8
|
||||||
- name: Grant execute permission for gradlew
|
- name: Grant execute permission for gradlew
|
||||||
run: chmod +x gradlew
|
run: chmod +x gradlew
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: Execute permission for renaming script
|
- name: Execute permission for renaming script
|
||||||
run: chmod +x ./.github/workflows/renaming.sh
|
run: chmod +x ./.github/workflows/renaming.sh
|
||||||
- name: Running renaming script
|
- name: Running renaming script
|
||||||
run: ./.github/workflows/renaming.sh
|
run: ./.github/workflows/renaming.sh
|
||||||
|
|
||||||
# Artifact upload
|
# Artifact upload
|
||||||
- name: Uploading artifacts
|
- name: Uploading artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
#name: ${{ env.BUILDNAME }}.jar
|
#name: ${{ env.BUILDNAME }}.jar
|
||||||
name: UNZIP_ME_${{ env.BUILDNAME }}.zip
|
name: UNZIP_ME_${{ env.BUILDNAME }}.zip
|
||||||
path: build/libs/${{ env.BUILDNAME }}.jar
|
path: build/libs/${{ env.BUILDNAME }}.jar
|
||||||
|
|
|
@ -7,6 +7,11 @@ mcVersion="$(grep 'minecraft_version' gradle.properties | sed 's/minecraft_versi
|
||||||
|
|
||||||
cd ./build/libs || exit
|
cd ./build/libs || exit
|
||||||
|
|
||||||
echo "Build is going to be renamed: $projectId-$version-devbuild_$GITHUB_RUN_NUMBER-MC_$mcVersion.jar"
|
buildName="$projectId-$version-devbuild_$GITHUB_RUN_NUMBER-MC_$mcVersion"
|
||||||
|
|
||||||
|
echo "Build is going to be renamed: $buildName.jar"
|
||||||
# Renaming the dev build
|
# Renaming the dev build
|
||||||
mv "$projectId-$version.jar" "$projectId-$version-devbuild_$GITHUB_RUN_NUMBER-MC_$mcVersion.jar"
|
mv "$projectId-$version.jar" "$buildName.jar"
|
||||||
|
|
||||||
|
#Setting the buildname for GH actions
|
||||||
|
echo "::set-env name=BUILDNAME::$buildName"
|
||||||
|
|
Loading…
Reference in New Issue