added needs

This commit is contained in:
Vadim 2023-06-25 12:44:55 +02:00
parent b79f1bd509
commit 86f521b18d

View file

@ -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 }}"