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:
|
||||
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 }}"
|
||||
|
|
Loading…
Reference in a new issue