mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
Compare commits
4 commits
64cfb3cde1
...
6994d5fc58
Author | SHA1 | Date | |
---|---|---|---|
|
6994d5fc58 | ||
|
86f521b18d | ||
|
b79f1bd509 | ||
|
8193c056d5 |
2 changed files with 18 additions and 3 deletions
21
.github/workflows/cd_prod.yml
vendored
21
.github/workflows/cd_prod.yml
vendored
|
@ -22,7 +22,6 @@ jobs:
|
||||||
name: Build .apk & .aab
|
name: Build .apk & .aab
|
||||||
runs-on: macos-11
|
runs-on: macos-11
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - uses: shaunco/ssh-agent@git-repo-mapping
|
# - uses: shaunco/ssh-agent@git-repo-mapping
|
||||||
# with:
|
# with:
|
||||||
|
@ -99,15 +98,15 @@ 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
|
||||||
with:
|
with:
|
||||||
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: |
|
||||||
|
@ -117,3 +116,19 @@ jobs:
|
||||||
git add -A
|
git add -A
|
||||||
git commit -m "Version bump"
|
git commit -m "Version bump"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
create-release:
|
||||||
|
name: Create Github release
|
||||||
|
needs: [build, update-version-in-repo]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: recursive
|
||||||
|
- uses: ncipollo/release-action@v1
|
||||||
|
with:
|
||||||
|
artifacts: "m3_lightmeter_apk, m3_lightmeter_bundle"
|
||||||
|
skipIfReleaseExists: true
|
||||||
|
tag: "v${{ github.event.inputs.version }}"
|
||||||
|
|
BIN
pubspec.yaml
BIN
pubspec.yaml
Binary file not shown.
Loading…
Reference in a new issue