Skip to content

Commit

Permalink
Update module.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenlua authored May 29, 2024
1 parent 33a4654 commit 9eaddeb
Showing 1 changed file with 21 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,33 @@ jobs:
- name: 'Start process'
run: |
# Kakathic
skdh="$(grep -m1 version= .github/Widget/module.prop | cut -d= -f2)"
TOME="$GITHUB_WORKSPACE"
getmodun(){ grep -m1 "$1=" $TOME/.github/Widget/module.prop | cut -d= -f2; }
upenv(){ echo "$1=$2" >> $GITHUB_ENV; eval "$1=$2"; }
upenv VUR "$(getmodun version)"
upenv VSR "$(getmodun versionCode)"
chmod 777 .github/Tvip.sh
.github/Tvip.sh
cp -rf vip.sh .github/Widget/bin
cd .github/Widget
zip -r $GITHUB_WORKSPACE/WidgetOS_$skdh.zip *
zip -r $GITHUB_WORKSPACE/WidgetOS_$(getmodun version).zip *
cd $GITHUB_WORKSPACE
- name: Upload sh
echo '{
"version": "'$VUR'",
"versionCode": "'$VSR'",
"zipUrl": "https://github.com/Zenlua/Widget/releases/download/V'$VUR'/WidgetOS_'${VUR}'.zip",
"changelog": "https://raw.githubusercontent.com/Zenlua/Widget/main/.github/Along.md"
}' > $TOME/overlay.json
- name: Upload zip
uses: softprops/action-gh-release@v2
with:
name: Widget OS ${{ env.VUR }}
tag_name: V${{ env.VUR }}
files: ./*.zip
body_path: log.txt
- name: Upload json
uses: softprops/action-gh-release@v1
with:
name: Tmp
tag_name: tmp
files: .sh
files: ./*.json

0 comments on commit 9eaddeb

Please sign in to comment.