mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2025-07-05 13:40:41 +00:00
Compare commits
No commits in common. "b9c4796a7ac8f2ebd007717b1fa486c0bde55feb" and "98262fc4eeef9303808c947589fed0c0f63a35db" have entirely different histories.
b9c4796a7a
...
98262fc4ee
2 changed files with 8 additions and 43 deletions
49
.github/workflows/create_release.yml
vendored
49
.github/workflows/create_release.yml
vendored
|
@ -18,19 +18,12 @@ on:
|
||||||
description: "Version"
|
description: "Version"
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
release-notes:
|
|
||||||
description: "Release notes"
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
run-integration-tests:
|
run-integration-tests:
|
||||||
description: "Run integration tests"
|
description: "Run integration tests"
|
||||||
required: true
|
required: true
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
|
||||||
env:
|
|
||||||
RELEASE_NOTES_FILE: release_notes_en_${{ inputs.version }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-integration-tests:
|
run-integration-tests:
|
||||||
name: Run integration tests
|
name: Run integration tests
|
||||||
|
@ -63,24 +56,9 @@ jobs:
|
||||||
stage-backend: false
|
stage-backend: false
|
||||||
version: ${{ inputs.version }}
|
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:
|
create-github-release:
|
||||||
name: Create Github release
|
name: Create Github release
|
||||||
needs: [generate-release-notes]
|
needs: [build-android, build-ios]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -92,14 +70,6 @@ jobs:
|
||||||
- name: Increment build number & replace version number
|
- name: Increment build number & replace version number
|
||||||
run: bash ./.github/scripts/increment_build_number.sh ${{ github.event.inputs.version }}
|
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
|
- 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"
|
||||||
|
@ -127,11 +97,11 @@ jobs:
|
||||||
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_FILE }}.md"
|
bodyFile: "assets/release_notes/release_notes_en_${{ inputs.version }}.md"
|
||||||
|
|
||||||
create-google-play-release:
|
create-google-play-release:
|
||||||
name: Create Google Play release
|
name: Create Google Play release
|
||||||
needs: [generate-release-notes]
|
needs: [build-android, build-ios]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -148,16 +118,11 @@ jobs:
|
||||||
unzip app-prod-release.aab
|
unzip app-prod-release.aab
|
||||||
(cd base/lib && zip -r "$OLDPWD/merged_native_libs.zip" .)
|
(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
|
- name: Move release notes to a folder
|
||||||
run: |
|
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
|
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://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
|
||||||
|
@ -182,7 +147,7 @@ jobs:
|
||||||
|
|
||||||
upload-to-app-store:
|
upload-to-app-store:
|
||||||
name: Upload to App Store
|
name: Upload to App Store
|
||||||
needs: [generate-release-notes]
|
needs: [build-android, build-ios]
|
||||||
runs-on: macos-13
|
runs-on: macos-13
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -212,4 +177,4 @@ jobs:
|
||||||
m3_lightmeter_apk
|
m3_lightmeter_apk
|
||||||
m3_lightmeter_appbundle
|
m3_lightmeter_appbundle
|
||||||
m3_lightmeter_ipa
|
m3_lightmeter_ipa
|
||||||
${{ env.RELEASE_NOTES_FILE }}
|
whatsnew-en-US
|
||||||
|
|
|
@ -30,7 +30,7 @@ dependencies:
|
||||||
m3_lightmeter_iap:
|
m3_lightmeter_iap:
|
||||||
git:
|
git:
|
||||||
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
url: "https://github.com/vodemn/m3_lightmeter_iap"
|
||||||
ref: v0.11.2
|
ref: v0.11.1
|
||||||
m3_lightmeter_resources:
|
m3_lightmeter_resources:
|
||||||
git:
|
git:
|
||||||
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
url: "https://github.com/vodemn/m3_lightmeter_resources"
|
||||||
|
|
Loading…
Reference in a new issue