Update release.yaml

This commit is contained in:
uazo 2022-01-17 15:21:53 +01:00 committed by GitHub
parent 2bf12def99
commit d8324941ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@ jobs:
runs-on: ${{ github.event.inputs.type }} runs-on: ${{ github.event.inputs.type }}
env: env:
OUTPUTFILE: /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}/apks/ChromePublic.apk OUTPUTFILE: /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}/apks/ChromePublic.apk
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
steps: steps:
- name: Enable proxy on container - name: Enable proxy on container
@ -50,8 +51,16 @@ jobs:
sudo iptables -D INPUT -p tcp --dport 8118 -j DROP sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
fi fi
- name: Copy artifacts
shell: bash
run: |
sudo cp ${{ env.OUTPUTFILE }} ChromePublic.apk
sudo chown runner ChromePublic.apk
rm ChromePublic.apk $APK
- name: Release build ${{ github.event.inputs.build }}/${{ github.event.inputs.sha }} - name: Release build ${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
draft: true draft: true
files: ${{ env.OUTPUTFILE }} body: Apk for ${{ env.APK }} sha ${{ github.event.inputs.sha }}
files: ${{ env.APK }}