Skip to content

Commit

Permalink
Merge pull request #33 from NightRainMilkyWay/main
Browse files Browse the repository at this point in the history
更新 Create Release.yml
  • Loading branch information
NightRainMilkyWay authored Nov 20, 2024
2 parents fc94eae + cf77351 commit 9350467
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/Create Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,16 @@ jobs:
echo '{
"versionCode": '"${VERSIONCODE}"',
"version": "'"${VERSION}"'",
"zipUrl": "https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/releases/download/'"${VERSION}"'/Magisk_'"${VERSION}"'.zip",
"zipUrl": "https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/releases/download/'"${VERSION}"'/Magisk_suni_'"${VERSION}"'.zip",
"changelog": "https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/blob/main/changelog.md"
}' > Tritium.json
}' > Tritium_suni.json
echo '{
"versionCode": '"${VERSIONCODE}"',
"version": "'"${VERSION}"'",
"zipUrl": "https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/releases/download/'"${VERSION}"'/Magisk_fiage_'"${VERSION}"'.zip",
"changelog": "https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/blob/main/changelog.md"
}' > Tritium_fiage.json
# 创建 module.prop 文件
echo 'id=ct_module
Expand All @@ -43,17 +50,31 @@ jobs:
author=Suni
description=Optimize performance ing…
updateJson=https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/blob/main/Tritium.json
' > ./magisk/module.prop
' > ./magisk_suni/module.prop
echo 'id=ct_module
name=Tritium Scheduler
version='"${VERSION}"'
versionCode='"${VERSIONCODE}"'
author=Fiage
description=Optimize performance ing…
updateJson=https://github.moeyy.xyz/https://github.com/TimeBreeze/Tritium/blob/main/Tritium_fiage.json
' > ./magisk_fiage/module.prop
- name: Zip Module
run: |
cd $GITHUB_WORKSPACE/magisk_suni
zip -r $GITHUB_WORKSPACE/${ZIP_FILENAME}_${VERSION}.zip ./*
zip -r $GITHUB_WORKSPACE/${ZIP_FILENAME}_suni_${VERSION}.zip ./*
cd configs
zip -r $GITHUB_WORKSPACE/${CONFIG_NAME}_${VERSION}.zip ./*
zip -r $GITHUB_WORKSPACE/${CONFIG_NAME}_suni_${VERSION}.zip ./*
cd ../../.
cd $GITHUB_WORKSPACE/magisk_fiage
zip -r $GITHUB_WORKSPACE/${ZIP_FILENAME}_fiage_${VERSION}.zip ./*
cd configs
zip -r $GITHUB_WORKSPACE/${CONFIG_NAME}_fiage_${VERSION}.zip ./*
cd ../../.
- name: Release
uses: softprops/action-gh-release@v2
Expand Down

0 comments on commit 9350467

Please sign in to comment.