mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 21:19:28 +02:00
Merge remote-tracking branch 'origin/main' into dev
This commit is contained in:
14
.github/workflows/release.yml
vendored
14
.github/workflows/release.yml
vendored
@@ -6,7 +6,10 @@ on:
|
|||||||
beta:
|
beta:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Is beta?
|
description: Is beta?
|
||||||
|
draft:
|
||||||
|
type: boolean
|
||||||
|
description: Is draft?
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -35,13 +38,7 @@ jobs:
|
|||||||
- name: Check submodule
|
- name: Check submodule
|
||||||
id: check_submodule
|
id: check_submodule
|
||||||
run: |
|
run: |
|
||||||
SUBMODULE_COMMIT_LONG="$(git submodule status | head -1 | tail -c +2 | awk '{print $1}')"
|
git checkout ${{ inputs.checkout }}
|
||||||
FLUTTER_COMMIT_SHORT="$(flutter --version | head -2 | tail -1 | awk '{print $4}')"
|
|
||||||
echo "SUBMODULE_COMMIT_LONG=$SUBMODULE_COMMIT_LONG, FLUTTER_COMMIT_SHORT=$FLUTTER_COMMIT_SHORT"
|
|
||||||
if ! [[ "$SUBMODULE_COMMIT_LONG" =~ ^$FLUTTER_COMMIT_SHORT ]]; then
|
|
||||||
echo "Your submodule has not been updated!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Extract Version
|
- name: Extract Version
|
||||||
id: extract_version
|
id: extract_version
|
||||||
@@ -92,5 +89,6 @@ jobs:
|
|||||||
token: ${{ secrets.GH_ACCESS_TOKEN }}
|
token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
tag: "${{ steps.extract_version.outputs.tag }}"
|
tag: "${{ steps.extract_version.outputs.tag }}"
|
||||||
prerelease: "${{ steps.extract_version.outputs.beta }}"
|
prerelease: "${{ steps.extract_version.outputs.beta }}"
|
||||||
|
draft: "${{ inputs.draft }}"
|
||||||
artifacts: ./build/app/outputs/flutter-apk/*-release*.apk*
|
artifacts: ./build/app/outputs/flutter-apk/*-release*.apk*
|
||||||
generateReleaseNotes: true
|
generateReleaseNotes: true
|
||||||
|
Reference in New Issue
Block a user