forked from Anuken/Mindustry
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
32 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,41 +17,41 @@ jobs: | |
java-version: 14 | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Add Arc release | ||
run: | | ||
git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc | ||
cd ../Arc | ||
git tag ${RELEASE_VERSION} | ||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${RELEASE_VERSION}; | ||
cd ../Mindustry | ||
# - name: Add Arc release | ||
# run: | | ||
# git clone --depth=1 --branch=master https://github.com/Anuken/Arc ../Arc | ||
# cd ../Arc | ||
# git tag ${RELEASE_VERSION} | ||
# git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/Arc ${RELEASE_VERSION}; | ||
# cd ../Mindustry | ||
- name: Create artifacts | ||
run: | | ||
./gradlew desktop:dist server:dist core:mergedJavadoc -Pbuildversion=${RELEASE_VERSION:1} | ||
- name: Update docs | ||
run: | | ||
cd ../ | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Github Actions" | ||
git clone --depth=1 https://github.com/MindustryGame/docs.git | ||
cd docs | ||
find . -maxdepth 1 ! -name ".git" ! -name . -exec rm -r {} \; | ||
cd ../ | ||
cp -a Mindustry/core/build/javadoc/. docs/ | ||
cd docs | ||
git add . | ||
git commit -m "Update ${RELEASE_VERSION:1}" | ||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryGame/docs | ||
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 ${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 ${RELEASE_VERSION:1}" | ||
git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds | ||
cd ../Mindustry | ||
# - name: Update docs | ||
# run: | | ||
# cd ../ | ||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Github Actions" | ||
# git clone --depth=1 https://github.com/MindustryGame/docs.git | ||
# cd docs | ||
# find . -maxdepth 1 ! -name ".git" ! -name . -exec rm -r {} \; | ||
# cd ../ | ||
# cp -a Mindustry/core/build/javadoc/. docs/ | ||
# cd docs | ||
# git add . | ||
# git commit -m "Update ${RELEASE_VERSION:1}" | ||
# git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/MindustryGame/docs | ||
# 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 ${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 ${RELEASE_VERSION:1}" | ||
# git push https://Anuken:${{ secrets.API_TOKEN_GITHUB }}@github.com/Anuken/MindustryBuilds | ||
# cd ../Mindustry | ||
- name: Upload client artifacts | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
|