Update
This commit is contained in:
22
.github/workflows/build.yml
vendored
22
.github/workflows/build.yml
vendored
@@ -1,14 +1,26 @@
|
|||||||
name: Build APK and Linux
|
name: Build Packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- 'v*.*.*'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
platform:
|
||||||
|
description: 'Platform to build'
|
||||||
|
required: true
|
||||||
|
type: choice
|
||||||
|
options:
|
||||||
|
- all
|
||||||
|
- linux
|
||||||
|
- windows
|
||||||
|
- android
|
||||||
|
default: 'all'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref_type == 'tag' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'linux'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
@@ -43,6 +55,7 @@ jobs:
|
|||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
if: github.ref_type == 'tag' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'windows'
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
steps:
|
steps:
|
||||||
@@ -75,6 +88,7 @@ jobs:
|
|||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: github.ref_type == 'tag' || github.event.inputs.platform == 'all' || github.event.inputs.platform == 'android'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -117,7 +131,7 @@ jobs:
|
|||||||
create-release:
|
create-release:
|
||||||
needs: [build-linux, build-windows, build-android]
|
needs: [build-linux, build-windows, build-android]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: github.ref_type == 'tag' && !cancelled()
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
@@ -125,20 +139,22 @@ jobs:
|
|||||||
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
|
||||||
|
|
||||||
- name: Download Linux artifact
|
- name: Download Linux artifact
|
||||||
|
if: needs.build-linux.result == 'success'
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
||||||
with:
|
with:
|
||||||
name: ren-browser-linux
|
name: ren-browser-linux
|
||||||
path: ./artifacts/linux
|
path: ./artifacts/linux
|
||||||
|
|
||||||
- name: Download Windows artifact
|
- name: Download Windows artifact
|
||||||
|
if: needs.build-windows.result == 'success'
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
||||||
with:
|
with:
|
||||||
name: ren-browser-windows
|
name: ren-browser-windows
|
||||||
path: ./artifacts/windows
|
path: ./artifacts/windows
|
||||||
|
|
||||||
- name: Download APK artifact
|
- name: Download APK artifact
|
||||||
|
if: needs.build-android.result == 'success'
|
||||||
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0
|
||||||
continue-on-error: true
|
|
||||||
with:
|
with:
|
||||||
name: ren-browser-apk
|
name: ren-browser-apk
|
||||||
path: ./artifacts/apk
|
path: ./artifacts/apk
|
||||||
|
|||||||
Reference in New Issue
Block a user