Update release.yaml
This commit is contained in:
parent
a92ed02b41
commit
b6734a4704
24
.github/workflows/release.yaml
vendored
24
.github/workflows/release.yaml
vendored
@ -42,6 +42,24 @@ jobs:
|
|||||||
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
|
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
|
||||||
|
|
||||||
steps:
|
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
|
- name: Copy artifacts
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -52,12 +70,10 @@ jobs:
|
|||||||
- name: Create release
|
- name: Create release
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
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
|
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 \
|
gh_2.4.0_linux_amd64/bin/gh release create $VERSION \
|
||||||
$APK --notes ""
|
$APK --notes ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user