diff --git a/.github/workflows/cd_prod.yml b/.github/workflows/cd_prod.yml index 8ee26ea..a767006 100644 --- a/.github/workflows/cd_prod.yml +++ b/.github/workflows/cd_prod.yml @@ -98,6 +98,7 @@ jobs: update-version-in-repo: name: Update repo version + needs: [build] runs-on: macos-11 steps: - uses: actions/checkout@v3 @@ -105,7 +106,7 @@ jobs: submodules: recursive - name: Increment build number & replace version number - run: $UPDATE_VERSION_SCRIPT + run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.${{ github.event.inputs.version }}.$3.($4+1)/e' pubspec.yaml - name: Commit and push changes run: | @@ -118,6 +119,7 @@ jobs: create-release: name: Create Github release + needs: [build, update-version-in-repo] runs-on: ubuntu-latest permissions: contents: write @@ -127,6 +129,6 @@ jobs: submodules: recursive - uses: ncipollo/release-action@v1 with: - artifacts: "m3_lightmeter_apk.apk, m3_lightmeter_bundle.aab" + artifacts: "m3_lightmeter_apk, m3_lightmeter_bundle" skipIfReleaseExists: true tag: "v${{ github.event.inputs.version }}"