Update release.yaml

This commit is contained in:
uazo 2022-01-17 17:27:11 +01:00 committed by GitHub
parent a92ed02b41
commit b6734a4704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,24 @@ jobs:
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
steps:
- name: Prepare container
run: |
wget https://github.com/ericchiang/pup/releases/download/v0.4.0/pup_v0.4.0_linux_amd64.zip
unzip pup_v0.4.0_linux_amd64.zip && rm pup_v0.4.0_linux_amd64.zip
BRANCH=$(curl https://github.com/uazo/bromite/branch_commits/$BROMITE_SHA | ./pup -p li.branch a text{})
echo "BRANCH=$BRANCH" >> $GITHUB_EN
wget https://github.com/cli/cli/releases/download/v2.4.0/gh_2.4.0_linux_amd64.tar.gz
tar xfz gh_2.4.0_linux_amd64.tar.gz
- name: Checkout 'uazo/bromite' ${{ env.BRANCH }}
uses: actions/checkout@v2
with:
repository: 'uazo/bromite'
ref: ${{ github.event.inputs.rtag }}
path: 'bromite'
fetch-depth: 1
- name: Copy artifacts
shell: bash
run: |
@ -52,12 +70,10 @@ jobs:
- name: Create release
shell: bash
run: |
wget https://github.com/cli/cli/releases/download/v2.4.0/gh_2.4.0_linux_amd64.tar.gz
tar xfz gh_2.4.0_linux_amd64.tar.gz
echo ${{ secrets.GITHUB_TOKEN }} | gh_2.4.0_linux_amd64/bin/gh auth login --with-token
VERSION=v$(cat ${{ env.OUTPUTFILE }}/RELEASE)-${{ github.event.inputs.build }}
cd bromite
VERSION=v$(cat ./build/RELEASE)-${{ github.event.inputs.build }}
gh_2.4.0_linux_amd64/bin/gh release create $VERSION \
$APK --notes ""