Bump version number to v0.15.0 and add RC build logic to CI script
This commit is contained in:
parent
25189e2aff
commit
2b864a771f
|
@ -5,7 +5,7 @@ name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master, development ]
|
branches: [ master, development, '**-RC' ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -48,13 +48,17 @@ jobs:
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v3
|
||||||
env:
|
env:
|
||||||
IS_DEV: ${{ contains(github.ref, 'development') }}
|
IS_DEV: ${{ contains(github.ref, 'development') }}
|
||||||
|
IS_RC: ${{ contains(github.ref, 'RC') }}
|
||||||
VERSION_NUMBER_NIGHTLY: ${{ env.PACKAGE_VERSION }}-nightly-${{ github.run_number }}
|
VERSION_NUMBER_NIGHTLY: ${{ env.PACKAGE_VERSION }}-nightly-${{ github.run_number }}
|
||||||
|
VERSION_NUMBER_RC: ${{ env.PACKAGE_VERSION }}-RC-${{ github.run_number }}
|
||||||
VERSION_NUMBER: ${{ env.PACKAGE_VERSION }}
|
VERSION_NUMBER: ${{ env.PACKAGE_VERSION }}
|
||||||
with:
|
with:
|
||||||
result-encoding: string
|
result-encoding: string
|
||||||
script: |
|
script: |
|
||||||
if (${{ env.IS_DEV }}) {
|
if (${{ env.IS_DEV }}) {
|
||||||
return "${{ env.VERSION_NUMBER_NIGHTLY }}"
|
return "${{ env.VERSION_NUMBER_NIGHTLY }}"
|
||||||
|
} else if (${{ env.IS_RC }}) {
|
||||||
|
return "${{ env.VERSION_NUMBER_RC }}"
|
||||||
} else {
|
} else {
|
||||||
return "${{env.VERSION_NUMBER }}"
|
return "${{env.VERSION_NUMBER }}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "freetube",
|
"name": "freetube",
|
||||||
"productName": "FreeTube",
|
"productName": "FreeTube",
|
||||||
"description": "A private YouTube client",
|
"description": "A private YouTube client",
|
||||||
"version": "0.14.0",
|
"version": "0.15.0",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"main": "./dist/main.js",
|
"main": "./dist/main.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|
Loading…
Reference in New Issue