forked from Anuken/Mindustry
-
Notifications
You must be signed in to change notification settings - Fork 5
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
3 changed files
with
20 additions
and
12 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
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 |
---|---|---|
|
@@ -27,15 +27,18 @@ jobs: | |
build-scan-terms-of-use-agree: "yes" | ||
- name: Set env | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "github_actions" | ||
echo "RELEASE_TAG=${GITHUB_REF_NAME}-build" >> $GITHUB_ENV | ||
echo "RELEASE_TAG=${GITHUB_REF_NAME}-build" | ||
echo "RELEASE_VERSION=$(date +'%Y.%m.%d').X${GITHUB_RUN_NUMBER}-${GITHUB_REF_NAME}" >> $GITHUB_ENV | ||
echo "${{ secrets.KEYSTORE_BASE64 }}" | openssl enc -d -base64 -in - -out ../bekeystore.jks | ||
echo "${{ secrets.KEYSTORE_BASE64 }}" | openssl enc -d -base64 -in - -out bekeystore.jks | ||
- name: Build | ||
run: | | ||
git submodule update --init --depth=10 | ||
cd work | ||
../scripts/applyPatches | ||
../scripts/applyPatches.sh | ||
gradle desktop:dist server:dist -Pbuildversion=${RELEASE_VERSION} | ||
cd .. | ||
|
@@ -74,6 +77,6 @@ jobs: | |
- name: clearOldAssets | ||
run: bun run .github/actions/clearOldAssets.ts | ||
env: | ||
GITHUB_TOKEN: ${{secrets.PUBLISH_TOKEN}} | ||
GITHUB_REPOSITORY: TinyLake/MindustryX-work | ||
TOKEN: ${{secrets.PUBLISH_TOKEN}} | ||
REPOSITORY: TinyLake/MindustryX-work | ||
TAG: ${{ env.RELEASE_TAG }} |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ install: | |
# - cd work/ && git fetch origin v145.1 && git reset --hard FETCH_HEAD && cd .. | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "jitpack" | ||
- sh ./scripts/applyPatches.sh && cd work/ | ||
- cd work/ && sh ../scripts/applyPatches.sh | ||
- ./gradlew publishToMavenLocal | ||
- echo -n > gradle.properties #zero out gradle.properties |