Update release.yaml

This commit is contained in:
uazo 2022-01-17 15:50:19 +01:00 committed by GitHub
parent db6c230404
commit 72eb8b6722
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -39,6 +39,7 @@ jobs:
env:
OUTPUTFILE: /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}/apks/ChromePublic.apk
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
HTTPS_PROXY: $PROXY_ADDR
steps:
- name: Copy artifacts
@ -48,9 +49,21 @@ jobs:
sudo chown runner ChromePublic.apk
mv ChromePublic.apk $APK
- name: Enable proxy on container
shell: bash
run: |
if ! [[ -z "${HTTP_PROXY}" ]]; then
PROXY_ADDR=http://$(hostname -I | cut -d' ' -f1 | xargs):8118
echo "PROXY_ADDR=$PROXY_ADDR" >> $GITHUB_ENV
sudo iptables -D INPUT -p tcp -s localhost --dport 8118 -j ACCEPT
sudo iptables -D INPUT -p tcp --dport 8118 -j DROP
fi
- name: Release build ${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
uses: softprops/action-gh-release@v1
with:
draft: true
body: Apk for ${{ env.APK }} sha ${{ github.event.inputs.sha }}
files: ${{ env.APK }}
env:
HTTP_PROXY: ${{ env.PROXY_ADDR }}