mirror of
https://github.com/MatsuriDayo/NekoBoxForAndroid.git
synced 2025-12-18 22:20:06 +08:00
1.3.2
This commit is contained in:
parent
506a1c5528
commit
15055d9cb9
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
@ -5,9 +5,6 @@ on:
|
||||
tag:
|
||||
description: 'Release Tag'
|
||||
required: true
|
||||
upload:
|
||||
description: 'Upload: If want ignore'
|
||||
required: false
|
||||
publish:
|
||||
description: 'Publish: If want ignore'
|
||||
required: false
|
||||
@ -100,36 +97,6 @@ jobs:
|
||||
mkdir apks
|
||||
find artifacts -name "*.apk" -exec cp {} apks \;
|
||||
./ghr -delete -t "${{ github.token }}" -n "${{ github.event.inputs.tag }}" "${{ github.event.inputs.tag }}" apks
|
||||
upload:
|
||||
name: Upload Release
|
||||
if: github.event.inputs.upload != 'y'
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Donwload Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: APKs
|
||||
path: artifacts
|
||||
- name: Release
|
||||
run: |
|
||||
mkdir apks
|
||||
find artifacts -name "*.apk" -exec cp {} apks \;
|
||||
|
||||
function upload() {
|
||||
for apk in $@; do
|
||||
echo ">> Uploading $apk"
|
||||
curl https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendDocument \
|
||||
-X POST \
|
||||
-F chat_id="${{ secrets.TELEGRAM_CHANNEL }}" \
|
||||
-F document="@$apk" \
|
||||
--silent --show-error --fail >/dev/null &
|
||||
done
|
||||
for job in $(jobs -p); do
|
||||
wait $job || exit 1
|
||||
done
|
||||
}
|
||||
upload apks/*
|
||||
play:
|
||||
name: Build Play Bundle
|
||||
if: github.event.inputs.play != 'y'
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
PACKAGE_NAME=moe.nb4a
|
||||
VERSION_NAME=1.3.1
|
||||
VERSION_CODE=35
|
||||
VERSION_NAME=1.3.2
|
||||
VERSION_CODE=36
|
||||
|
||||
Loading…
Reference in New Issue
Block a user