mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-11-24 00:10:47 +00:00
Compare commits
No commits in common. "6994d5fc58f2fdca9a58df6e2a47bbfbffed25d5" and "64cfb3cde1dcb2ca535c98b318617542b6c780b6" have entirely different histories.
6994d5fc58
...
64cfb3cde1
2 changed files with 3 additions and 18 deletions
21
.github/workflows/cd_prod.yml
vendored
21
.github/workflows/cd_prod.yml
vendored
|
@ -22,6 +22,7 @@ jobs:
|
|||
name: Build .apk & .aab
|
||||
runs-on: macos-11
|
||||
timeout-minutes: 30
|
||||
|
||||
steps:
|
||||
# - uses: shaunco/ssh-agent@git-repo-mapping
|
||||
# with:
|
||||
|
@ -98,15 +99,15 @@ jobs:
|
|||
|
||||
update-version-in-repo:
|
||||
name: Update repo version
|
||||
needs: [build]
|
||||
runs-on: macos-11
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Increment build number & replace version number
|
||||
run: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1.${{ github.event.inputs.version }}.$3.($4+1)/e' pubspec.yaml
|
||||
run: $UPDATE_VERSION_SCRIPT
|
||||
|
||||
- name: Commit and push changes
|
||||
run: |
|
||||
|
@ -116,19 +117,3 @@ jobs:
|
|||
git add -A
|
||||
git commit -m "Version bump"
|
||||
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