mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-11-11 10:33:28 +01:00
Update release.yml
This commit is contained in:
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -6,7 +6,13 @@ on:
|
|||||||
beta:
|
beta:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: Is beta?
|
description: Is beta?
|
||||||
|
draft:
|
||||||
|
type: boolean
|
||||||
|
description: Is draft?
|
||||||
|
checkout:
|
||||||
|
required: true
|
||||||
|
default: "main"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -32,8 +38,8 @@ jobs:
|
|||||||
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
||||||
passphrase: ${{ secrets.PGP_PASSPHRASE }}
|
passphrase: ${{ secrets.PGP_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Check submodule
|
- name: Checkout branch
|
||||||
id: check_submodule
|
id: checkout_branch
|
||||||
run: |
|
run: |
|
||||||
SUBMODULE_COMMIT_LONG="$(git submodule status | head -1 | tail -c +2 | awk '{print $1}')"
|
SUBMODULE_COMMIT_LONG="$(git submodule status | head -1 | tail -c +2 | awk '{print $1}')"
|
||||||
FLUTTER_COMMIT_SHORT="$(flutter --version | head -2 | tail -1 | awk '{print $4}')"
|
FLUTTER_COMMIT_SHORT="$(flutter --version | head -2 | tail -1 | awk '{print $4}')"
|
||||||
@@ -43,6 +49,11 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Check submodule
|
||||||
|
id: check_submodule
|
||||||
|
run: |
|
||||||
|
git checkout ${{ inputs.checkout }}
|
||||||
|
|
||||||
- name: Extract Version
|
- name: Extract Version
|
||||||
id: extract_version
|
id: extract_version
|
||||||
run: |
|
run: |
|
||||||
@@ -92,5 +103,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