Merge pull request #1503 from celetor/master

gedoor/legado分支中的安装包转移到gedoor/release
pull/1511/head
kunfei 3 years ago committed by GitHub
commit 997304cde6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      .github/workflows/release.yml
  2. 3
      .github/workflows/test.yml
  3. 2
      README.md

@ -78,7 +78,9 @@ jobs:
files: ${{ github.workspace }}/apk/*.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Push Assets To "release" Branch
if: ${{ github.actor == 'gedoor' }}
run: |
cd $GITHUB_WORKSPACE/apk || exit 1
git init
@ -87,11 +89,12 @@ jobs:
git checkout -b release
git add *.apk
git commit -m "${{ env.RELEASE_VERSION }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.actor }}/release"
git push -f -u origin release
- name: Purge Jsdelivr Cache
if: ${{ github.actor == 'gedoor' }}
run: |
result=$(curl -s https://purge.jsdelivr.net/gh/${{ github.repository }}@release/)
result=$(curl -s https://purge.jsdelivr.net/gh/${{ github.actor }}/release@release/)
if echo $result |grep -q 'success.*true'; then
echo "jsdelivr缓存更新成功"
else

@ -117,6 +117,7 @@ jobs:
test_Branch:
needs: [ prepare, build ]
runs-on: ubuntu-latest
if: ${{ github.actor == 'gedoor' }}
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
@ -133,7 +134,7 @@ jobs:
git checkout -b test
git add *.apk
git commit -m "${{ needs.prepare.outputs.versionL }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.actor }}/release"
git push -f -u origin test
telegram:

@ -52,7 +52,7 @@ Legado is a free and open source novel reader for Android.
* [Releases](https://github.com/gedoor/legado/releases/latest)
* [Google play - $1.99](https://play.google.com/store/apps/details?id=io.legado.play.release)
* [Coolapk](https://www.coolapk.com/apk/io.legado.app.release)
* [Jsdelivr](https://cdn.jsdelivr.net/gh/gedoor/legado@release/)
* [Jsdelivr](https://cdn.jsdelivr.net/gh/gedoor/release@release/)
* [\#Beta](https://kunfei.lanzoui.com/b0f810h4b)

Loading…
Cancel
Save