Update build.yml

This commit is contained in:
klzgrad 2022-05-20 13:50:07 +08:00 committed by GitHub
parent a79b13e654
commit adef1148e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -308,7 +308,7 @@ jobs:
run: | run: |
mkdir ${{ env.BUNDLE }} mkdir ${{ env.BUNDLE }}
cp out/Release/naive config.json ../LICENSE ../USAGE.txt ${{ env.BUNDLE }} cp out/Release/naive config.json ../LICENSE ../USAGE.txt ${{ env.BUNDLE }}
7z a ../${{ env.BUNDLE }}.zip ${{ env.BUNDLE }} 7z a ${{ env.BUNDLE }}.zip ${{ env.BUNDLE }}
hub release edit -a ${{ env.BUNDLE }}.zip -m "" "${GITHUB_REF##*/}" hub release edit -a ${{ env.BUNDLE }}.zip -m "" "${GITHUB_REF##*/}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -316,7 +316,7 @@ jobs:
if: ${{ github.event_name == 'release' }} if: ${{ github.event_name == 'release' }}
run: | run: |
mv out/Release/cronet ${{ env.CRONET_BUNDLE }} mv out/Release/cronet ${{ env.CRONET_BUNDLE }}
7z a ../${{ env.CRONET_BUNDLE }}.zip ${{ env.CRONET_BUNDLE }} 7z a ${{ env.CRONET_BUNDLE }}.zip ${{ env.CRONET_BUNDLE }}
hub release edit -a ${{ env.CRONET_BUNDLE }}.zip -m "" "${GITHUB_REF##*/}" hub release edit -a ${{ env.CRONET_BUNDLE }}.zip -m "" "${GITHUB_REF##*/}"
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}