mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-30 21:13:28 +01:00 
			
		
		
		
	Update release.yml
This commit is contained in:
		
							
								
								
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -42,18 +42,16 @@ jobs: | |||||||
|           done |           done | ||||||
|           rm apksign.keystore |           rm apksign.keystore | ||||||
|           PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.fingerprint }}" |           PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.fingerprint }}" | ||||||
|           gpg --batch --yes --delete-secret-keys "$PGP_KEY_FINGERPRINT" |  | ||||||
|           gpg --batch --yes --delete-keys "$PGP_KEY_FINGERPRINT" |  | ||||||
|          |          | ||||||
|       - name: Extract Version |       - name: Extract Version | ||||||
|         id: extract_version       |         id: extract_version       | ||||||
|         run: | |         run: | | ||||||
|            VERSION=$(grep -oP "currentVersion = '\K[^']+" lib/main.dart) |            VERSION=$(grep -oP "currentVersion = '\K[^']+" lib/main.dart) | ||||||
|            echo "::set-output name=version::$VERSION" |            echo "version=$VERSION" >> $GITHUB_OUTPUT | ||||||
|            TAG=$(grep -oP "'.*\\\$currentVersion.*'" lib/main.dart | head -c -2 | tail -c +2 | sed "s/\$currentVersion/$VERSION/g") |            TAG=$(grep -oP "'.*\\\$currentVersion.*'" lib/main.dart | head -c -2 | tail -c +2 | sed "s/\$currentVersion/$VERSION/g") | ||||||
|            echo "::set-output name=tag::$TAG" |            echo "tag=$TAG" >> $GITHUB_OUTPUT | ||||||
|            if [ -n "$(echo $TAG | grep -oP '\-beta$')" ]; then BETA=true; else BETA=false; fi |            if [ -n "$(echo $TAG | grep -oP '\-beta$')" ]; then BETA=true; else BETA=false; fi | ||||||
|            echo "::set-output name=beta::$BETA" |            echo "beta=$BETA" >> $GITHUB_OUTPUT | ||||||
|  |  | ||||||
|       - name: Create Tag |       - name: Create Tag | ||||||
|         uses: mathieudutour/github-tag-action@v6.1 |         uses: mathieudutour/github-tag-action@v6.1 | ||||||
| @@ -71,10 +69,3 @@ jobs: | |||||||
|           artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* |           artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* | ||||||
|           generateReleaseNotes: true |           generateReleaseNotes: true | ||||||
|           draft: true |           draft: true | ||||||
|                    |  | ||||||
|       - name: Archive Reports For Job |  | ||||||
|         uses: actions/upload-artifact@v3 |  | ||||||
|         with: |  | ||||||
|           name: reports |  | ||||||
|           path: '*/build/reports' |  | ||||||
|         if: ${{ always() }} |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user