bromite-buildtools/.github/workflows/release.yaml

57 lines
1.5 KiB
YAML
Raw Normal View History

2022-01-17 19:38:04 +05:30
name: Release Bromite CI
2022-01-17 19:47:01 +05:30
permissions:
contents: write
2022-01-17 19:38:04 +05:30
on:
workflow_dispatch:
inputs:
sha:
description: 'uazo/bromite SHA'
required: true
default: '0a8ff322d6e9d738f7b2fa52618b178081bd100d'
build:
description: 'arch [arm64/x64]'
required: true
2022-01-17 19:47:37 +05:30
default: 'arm64'
2022-01-17 19:38:04 +05:30
type:
description: 'runner? [dev/ci]'
required: true
default: 'ci'
debug:
description: 'debug? [true/false]'
required: true
default: 'false'
usegoma:
description: 'Use goma? [true/false]'
required: true
default: 'false'
env:
BROMITE_SHA: ${{ github.event.inputs.sha }}
USEGOMA: ${{ github.event.inputs.usegoma }}
REMOVEDOCKERSUPPORT: true
USELOCALIMAGE: true
GOMAJOBS: 60
jobs:
release:
runs-on: ${{ github.event.inputs.type }}
env:
OUTPUTFILE: /storage/images/${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}/apks/ChromePublic.apk
2022-01-17 19:51:53 +05:30
APK: ${{ github.event.inputs.build }}_ChromePublic.apk
2022-01-17 19:38:04 +05:30
steps:
2022-01-17 19:51:53 +05:30
- name: Copy artifacts
shell: bash
run: |
sudo cp ${{ env.OUTPUTFILE }} ChromePublic.apk
sudo chown runner ChromePublic.apk
2022-01-17 19:52:49 +05:30
mv ChromePublic.apk $APK
2022-01-17 19:51:53 +05:30
2022-01-17 19:38:04 +05:30
- name: Release build ${{ github.event.inputs.build }}/${{ github.event.inputs.sha }}
uses: softprops/action-gh-release@v1
with:
draft: true
2022-01-17 19:51:53 +05:30
body: Apk for ${{ env.APK }} sha ${{ github.event.inputs.sha }}
files: ${{ env.APK }}