Fixed #3633
This commit is contained in:
16
.github/workflows/deployment.yml
vendored
16
.github/workflows/deployment.yml
vendored
@@ -15,9 +15,11 @@ jobs:
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 14
|
||||
- name: Set env
|
||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
- name: Create artifacts
|
||||
run: |
|
||||
./gradlew desktop:dist server:dist core:javadoc -Pbuildversion=${GITHUB_REF:1}
|
||||
./gradlew desktop:dist server:dist core:javadoc -Pbuildversion=${RELEASE_VERSION:1}
|
||||
- name: Update docs
|
||||
run: |
|
||||
cd ../
|
||||
@@ -27,24 +29,24 @@ jobs:
|
||||
cp -a Mindustry/core/build/docs/javadoc/. docs/
|
||||
cd docs
|
||||
git add .
|
||||
git commit -m "Update ${GITHUB_REF:1}"
|
||||
git commit -m "Update ${RELEASE_VERSION:1}"
|
||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryGame/docs
|
||||
cd ../Mindustry
|
||||
- name: Add Arc release
|
||||
run: |
|
||||
git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc
|
||||
cd ../Arc
|
||||
git tag ${GITHUB_REF}
|
||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${GITHUB_REF};
|
||||
git tag ${RELEASE_VERSION}
|
||||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${RELEASE_VERSION};
|
||||
cd ../Mindustry
|
||||
- name: Update F-Droid build string
|
||||
run: |
|
||||
git clone --depth=1 --branch=master https://github.com/Anuken/MindustryBuilds ../MindustryBuilds
|
||||
cd ../MindustryBuilds
|
||||
echo "Updating version to ${GITHUB_REF:1}"
|
||||
echo versionName=6-fdroid-${GITHUB_REF:1}$'\n'versionCode=${GITHUB_REF:1} > version_fdroid.txt
|
||||
echo "Updating version to ${RELEASE_VERSION:1}"
|
||||
echo versionName=6-fdroid-${RELEASE_VERSION:1}$'\n'versionCode=${RELEASE_VERSION:1} > version_fdroid.txt
|
||||
git add .
|
||||
git commit -m "Updating to build ${GITHUB_REF:1}"
|
||||
git commit -m "Updating to build ${RELEASE_VERSION:1}"
|
||||
cd ../Mindustry
|
||||
- name: Upload client artifacts
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
|
||||
Reference in New Issue
Block a user