mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-22 23:40:41 +00:00
added needs
This commit is contained in:
parent
b79f1bd509
commit
86f521b18d
1 changed files with 4 additions and 2 deletions
6
.github/workflows/cd_prod.yml
vendored
6
.github/workflows/cd_prod.yml
vendored
|
@ -98,6 +98,7 @@ jobs:
|
||||||
|
|
||||||
update-version-in-repo:
|
update-version-in-repo:
|
||||||
name: Update repo version
|
name: Update repo version
|
||||||
|
needs: [build]
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -105,7 +106,7 @@ jobs:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: Increment build number & replace version number
|
- 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
|
- name: Commit and push changes
|
||||||
run: |
|
run: |
|
||||||
|
@ -118,6 +119,7 @@ jobs:
|
||||||
|
|
||||||
create-release:
|
create-release:
|
||||||
name: Create Github release
|
name: Create Github release
|
||||||
|
needs: [build, update-version-in-repo]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -127,6 +129,6 @@ jobs:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
artifacts: "m3_lightmeter_apk.apk, m3_lightmeter_bundle.aab"
|
artifacts: "m3_lightmeter_apk, m3_lightmeter_bundle"
|
||||||
skipIfReleaseExists: true
|
skipIfReleaseExists: true
|
||||||
tag: "v${{ github.event.inputs.version }}"
|
tag: "v${{ github.event.inputs.version }}"
|
||||||
|
|
Loading…
Reference in a new issue