Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
way-zer committed Sep 17, 2024
1 parent d6993f7 commit 7df41d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/actions/clearOldAssets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const octokit = getOctokit(import.meta.env.GITHUB_TOKEN) as import("@octokit/plu
const selfBuild = import.meta.env.RELEASE_VERSION

async function clearOldAssets(tag: string, keep: number = 9) {
console.log(context.repo)
const release = await octokit.rest.repos.getReleaseByTag({
...context.repo, tag
})
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,18 @@ jobs:
build-scan-terms-of-use-agree: "yes"
- name: Set env
run: |
git config --global user.email "ci@noreply.example.com"
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 ..
Expand Down
2 changes: 1 addition & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ install:
# - cd work/ && git fetch origin v145.1 && git reset --hard FETCH_HEAD && cd ..
- git config --global user.email "ci@noreply.example.com"
- 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

0 comments on commit 7df41d6

Please sign in to comment.