mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-15 03:18:09 +02:00
Merge remote-tracking branch 'origin/main' into dev
This commit is contained in:
53
.github/workflows/release.yml
vendored
53
.github/workflows/release.yml
vendored
@@ -6,8 +6,6 @@ on:
|
||||
beta:
|
||||
type: boolean
|
||||
description: Is beta?
|
||||
environment:
|
||||
type: environment
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -25,6 +23,18 @@ jobs:
|
||||
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
||||
passphrase: ${{ secrets.PGP_PASSPHRASE }}
|
||||
|
||||
- name: Extract Version
|
||||
id: extract_version
|
||||
run: |
|
||||
VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
TAG="v$VERSION"
|
||||
if [ $BETA == true ]; then TAG="$TAG"-beta; fi
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
echo "$VERSION" "$TAG" "$BETA"
|
||||
|
||||
- name: Build APKs
|
||||
run: |
|
||||
sed -i 's/signingConfig signingConfigs.release//g' android/app/build.gradle
|
||||
@@ -50,29 +60,18 @@ jobs:
|
||||
rm apksign.keystore
|
||||
PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.fingerprint }}"
|
||||
|
||||
- name: Extract Version
|
||||
id: extract_version
|
||||
run: |
|
||||
VERSION=$(grep -oP "^version: [^\+]+" pubspec.yaml | tail -c +10)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
if [ ${{ inputs.beta }} == true ]; then BETA=true; else BETA=false; fi
|
||||
echo "beta=$BETA" >> $GITHUB_OUTPUT
|
||||
TAG="v$VERSION"
|
||||
if [ $BETA == true ]; then TAG="$TAG"-beta; fi
|
||||
echo "tag=$TAG" >> $GITHUB_OUTPUT
|
||||
# - name: Create Tag
|
||||
# uses: mathieudutour/github-tag-action@v6.1
|
||||
# with:
|
||||
# github_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||
# custom_tag: "${{ steps.extract_version.outputs.tag }}"
|
||||
# tag_prefix: ""
|
||||
|
||||
- name: Create Tag
|
||||
uses: mathieudutour/github-tag-action@v6.1
|
||||
with:
|
||||
github_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||
custom_tag: "${{ steps.extract_version.outputs.tag }}"
|
||||
tag_prefix: ""
|
||||
|
||||
- name: Create Release And Upload APKs
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||
tag: "${{ steps.extract_version.outputs.tag }}"
|
||||
prerelease: "${{ steps.extract_version.outputs.beta }}"
|
||||
artifacts: ./build/app/outputs/flutter-apk/*-release*.apk*
|
||||
generateReleaseNotes: true
|
||||
# - name: Create Release And Upload APKs
|
||||
# uses: ncipollo/release-action@v1
|
||||
# with:
|
||||
# token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||
# tag: "${{ steps.extract_version.outputs.tag }}"
|
||||
# prerelease: "${{ steps.extract_version.outputs.beta }}"
|
||||
# artifacts: ./build/app/outputs/flutter-apk/*-release*.apk*
|
||||
# generateReleaseNotes: true
|
||||
|
Reference in New Issue
Block a user