mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 08:20:40 +00:00
temp disable releases
This commit is contained in:
parent
cc3f98c662
commit
9b27381383
1 changed files with 43 additions and 45 deletions
88
.github/workflows/create_release.yml
vendored
88
.github/workflows/create_release.yml
vendored
|
@ -99,34 +99,34 @@ jobs:
|
||||||
name: ${{ env.RELEASE_NOTES_ARTIFACT_NAME }}
|
name: ${{ env.RELEASE_NOTES_ARTIFACT_NAME }}
|
||||||
path: ${{ env.RELEASE_NOTES_PATH }}
|
path: ${{ env.RELEASE_NOTES_PATH }}
|
||||||
|
|
||||||
- name: Commit changes
|
# - name: Commit changes
|
||||||
run: |
|
# run: |
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
# git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
# git config --local user.name "github-actions[bot]"
|
||||||
git add -A
|
# git add -A
|
||||||
git commit -m "Release v${{ inputs.version }}"
|
# git commit -m "Release v${{ inputs.version }}"
|
||||||
|
|
||||||
- name: Push to main
|
# - name: Push to main
|
||||||
uses: CasperWA/push-protected@v2
|
# uses: CasperWA/push-protected@v2
|
||||||
with:
|
# with:
|
||||||
token: ${{ secrets.PUSH_TO_MAIN_TOKEN }}
|
# token: ${{ secrets.PUSH_TO_MAIN_TOKEN }}
|
||||||
branch: ${{ github.ref_name }}
|
# branch: ${{ github.ref_name }}
|
||||||
unprotect_reviews: true
|
# unprotect_reviews: true
|
||||||
|
|
||||||
- name: Download apk
|
# - name: Download apk
|
||||||
uses: actions/download-artifact@v3
|
# uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: m3_lightmeter_apk
|
# name: m3_lightmeter_apk
|
||||||
|
|
||||||
- name: Rename apk
|
# - name: Rename apk
|
||||||
run: mv app-prod-release.apk m3_lightmeter.apk
|
# run: mv app-prod-release.apk m3_lightmeter.apk
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1.12.0
|
# - uses: ncipollo/release-action@v1.12.0
|
||||||
with:
|
# with:
|
||||||
artifacts: "m3_lightmeter.apk"
|
# artifacts: "m3_lightmeter.apk"
|
||||||
skipIfReleaseExists: true
|
# skipIfReleaseExists: true
|
||||||
tag: "v${{ github.event.inputs.version }}"
|
# tag: "v${{ github.event.inputs.version }}"
|
||||||
bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
|
# bodyFile: "${{ env.RELEASE_NOTES_PATH }}/${{ env.RELEASE_NOTES_FILE }}"
|
||||||
|
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
name: Create Google Play release
|
name: Create Google Play release
|
||||||
|
@ -160,24 +160,24 @@ jobs:
|
||||||
|
|
||||||
# https://unix.stackexchange.com/questions/13466/can-grep-output-only-specified-groupings-that-match'
|
# https://unix.stackexchange.com/questions/13466/can-grep-output-only-specified-groupings-that-match'
|
||||||
# https://stackoverflow.com/questions/74353311/github-workflow-unable-to-process-file-command-env-successfully
|
# https://stackoverflow.com/questions/74353311/github-workflow-unable-to-process-file-command-env-successfully
|
||||||
- name: Create Google Play release name
|
# - name: Create Google Play release name
|
||||||
id: release-name
|
# id: release-name
|
||||||
run: |
|
# run: |
|
||||||
RELEASE_NAME=$(echo "$(cat pubspec.yaml)" | sed -n -r "s/^version:\s{1}(.*)[+](.*)$/700\2 (\1)/p")
|
# RELEASE_NAME=$(echo "$(cat pubspec.yaml)" | sed -n -r "s/^version:\s{1}(.*)[+](.*)$/700\2 (\1)/p")
|
||||||
echo "release_name=$RELEASE_NAME" >> $GITHUB_ENV
|
# echo "release_name=$RELEASE_NAME" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create Google Play release
|
# - name: Create Google Play release
|
||||||
id: create-google-play-release-step
|
# id: create-google-play-release-step
|
||||||
uses: r0adkll/upload-google-play@v1.1.1
|
# uses: r0adkll/upload-google-play@v1.1.1
|
||||||
with:
|
# with:
|
||||||
serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
|
# serviceAccountJsonPlainText: ${{ secrets.GH_ACTIONS_SERVICE_ACCOUNT_JSON }}
|
||||||
packageName: com.vodemn.lightmeter
|
# packageName: com.vodemn.lightmeter
|
||||||
releaseFiles: app-prod-release.aab
|
# releaseFiles: app-prod-release.aab
|
||||||
releaseName: ${{ env.release_name }}
|
# releaseName: ${{ env.release_name }}
|
||||||
track: production
|
# track: production
|
||||||
status: completed
|
# status: completed
|
||||||
debugSymbols: merged_native_libs.zip
|
# debugSymbols: merged_native_libs.zip
|
||||||
whatsNewDirectory: whatsnew
|
# whatsNewDirectory: whatsnew
|
||||||
|
|
||||||
upload-to-app-store:
|
upload-to-app-store:
|
||||||
name: Upload to App Store
|
name: Upload to App Store
|
||||||
|
@ -193,8 +193,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: m3_lightmeter_ipa
|
name: m3_lightmeter_ipa
|
||||||
|
|
||||||
- name: Upload app to TestFlight
|
# - name: Upload app to TestFlight
|
||||||
run: xcrun altool --upload-app -f lightmeter.ipa -t ios -u ${{ secrets.APP_STORE_USERNAME }} -p ${{ secrets.APP_STORE_PASSWORD }}
|
# run: xcrun altool --upload-app -f lightmeter.ipa -t ios -u ${{ secrets.APP_STORE_USERNAME }} -p ${{ secrets.APP_STORE_PASSWORD }}
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
name: Cleanup
|
name: Cleanup
|
||||||
|
@ -208,7 +208,5 @@ jobs:
|
||||||
with:
|
with:
|
||||||
failOnError: false
|
failOnError: false
|
||||||
name: |
|
name: |
|
||||||
m3_lightmeter_apk
|
|
||||||
m3_lightmeter_appbundle
|
m3_lightmeter_appbundle
|
||||||
m3_lightmeter_ipa
|
m3_lightmeter_ipa
|
||||||
${{ env.RELEASE_NOTES_ARTIFACT_NAME }}
|
|
||||||
|
|
Loading…
Reference in a new issue