diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index da28085..836880c 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -12,6 +12,10 @@ on: description: "Version" required: true type: string + changelog: + description: "Changelog" + required: true + type: string env: BUILD_ARGS: --release --flavor prod --dart-define cameraPreviewAspectRatio=2/3 -t lib/main_prod.dart @@ -22,7 +26,6 @@ jobs: name: Build .apk & .aab runs-on: macos-11 timeout-minutes: 30 - steps: # - uses: shaunco/ssh-agent@git-repo-mapping # with: @@ -100,7 +103,6 @@ jobs: update-version-in-repo: name: Update repo version runs-on: macos-11 - steps: - uses: actions/checkout@v3 with: @@ -117,3 +119,15 @@ jobs: git add -A git commit -m "Version bump" git push + + create-release: + name: Create Github release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ncipollo/release-action@v1 + with: + artifacts: "m3_lightmeter_apk.apk, m3_lightmeter_bundle.aab" + body: "${{ github.event.inputs.changelog }}" + skipIfReleaseExists: true + tag: "v${{ github.event.inputs.version }}"