Compare commits

..

No commits in common. "b9c4796a7ac8f2ebd007717b1fa486c0bde55feb" and "98262fc4eeef9303808c947589fed0c0f63a35db" have entirely different histories.

2 changed files with 8 additions and 43 deletions

View file

@ -18,19 +18,12 @@ on:
description: "Version"
required: true
type: string
release-notes:
description: "Release notes"
required: true
type: string
run-integration-tests:
description: "Run integration tests"
required: true
type: boolean
default: true
env:
RELEASE_NOTES_FILE: release_notes_en_${{ inputs.version }}
jobs:
run-integration-tests:
name: Run integration tests
@ -63,24 +56,9 @@ jobs:
stage-backend: false
version: ${{ inputs.version }}
generate-release-notes:
name: Generate release notes
needs: [build-android, build-ios]
runs-on: ubuntu-latest
steps:
- name: Generate release notes
run: |
echo ${{ inputs.release-notes }} > ${{ env.RELEASE_NOTES_FILE }}.md
perl -i -pe 's/\s{1}(-{1})/\n$1/g' ${{ env.RELEASE_NOTES_FILE }}.md
- name: Upload merged_native_libs.zip to artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ env.RELEASE_NOTES_FILE }}
path: ${{ env.RELEASE_NOTES_FILE }}.md
create-github-release:
name: Create Github release
needs: [generate-release-notes]
needs: [build-android, build-ios]
runs-on: ubuntu-latest
permissions:
contents: write
@ -92,14 +70,6 @@ jobs:
- name: Increment build number & replace version number
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
- name: Download release notes
uses: actions/download-artifact@v3
with:
name: ${{ env.RELEASE_NOTES_FILE }}
- name: Move release notes to a folder
run: mv assets/release_notes/${{ env.RELEASE_NOTES_FILE }}.md ${{ env.RELEASE_NOTES_FILE }}
- name: Commit changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
@ -127,11 +97,11 @@ jobs:
artifacts: "m3_lightmeter.apk"
skipIfReleaseExists: true
tag: "v${{ github.event.inputs.version }}"
bodyFile: "${{ env.RELEASE_NOTES_FILE }}.md"
bodyFile: "assets/release_notes/release_notes_en_${{ inputs.version }}.md"
create-google-play-release:
name: Create Google Play release
needs: [generate-release-notes]
needs: [build-android, build-ios]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@ -148,16 +118,11 @@ jobs:
unzip app-prod-release.aab
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
- name: Download release notes
uses: actions/download-artifact@v3
with:
name: ${{ env.RELEASE_NOTES_FILE }}
- name: Move release notes to a folder
run: |
mv assets/release_notes/${{ env.RELEASE_NOTES_FILE }}.md ${{ env.RELEASE_NOTES_FILE }}
mv assets/release_notes/release_notes_en_${{ inputs.version }}.md whatsnew-en-US
mkdir whatsnew
mv ${{ env.RELEASE_NOTES_FILE }} whatsnew
mv whatsnew-en-US whatsnew
# 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
@ -182,7 +147,7 @@ jobs:
upload-to-app-store:
name: Upload to App Store
needs: [generate-release-notes]
needs: [build-android, build-ios]
runs-on: macos-13
steps:
- uses: actions/checkout@v3
@ -212,4 +177,4 @@ jobs:
m3_lightmeter_apk
m3_lightmeter_appbundle
m3_lightmeter_ipa
${{ env.RELEASE_NOTES_FILE }}
whatsnew-en-US

View file

@ -30,7 +30,7 @@ dependencies:
m3_lightmeter_iap:
git:
url: "https://github.com/vodemn/m3_lightmeter_iap"
ref: v0.11.2
ref: v0.11.1
m3_lightmeter_resources:
git:
url: "https://github.com/vodemn/m3_lightmeter_resources"