Compare commits

...

4 commits

Author SHA1 Message Date
vodemn
0b472b7776 Version bump 2023-06-28 15:51:45 +00:00
Vadim
4324a89a9c typo 2023-06-28 17:40:36 +02:00
vodemn
90676c3d39 Version bump 2023-06-28 15:36:07 +00:00
Vadim
03293497e1 added branch name conditions 2023-06-28 17:24:14 +02:00
2 changed files with 4 additions and 3 deletions

View file

@ -109,7 +109,7 @@ jobs:
- name: Increment build number & replace version number - 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: perl -i -pe 's/^(version:\s+)(\d+\.\d+\.\d+)(\+)(\d+)$/$1."${{ github.event.inputs.version }}".$3.($4+1)/e' pubspec.yaml
- name: Commit changes - name: Commit changes
run: | run: |
git config --global user.name "vodemn" git config --global user.name "vodemn"
@ -121,12 +121,13 @@ jobs:
uses: CasperWA/push-protected@v2 uses: CasperWA/push-protected@v2
with: with:
token: ${{ secrets.PUSH_TO_MAIN_TOKEN }} token: ${{ secrets.PUSH_TO_MAIN_TOKEN }}
branch: main branch: ${{ github.ref_name }}
unprotect_reviews: true unprotect_reviews: true
create-release: create-release:
name: Create Github release name: Create Github release
needs: [build, update-version-in-repo] needs: [build, update-version-in-repo]
if: github.ref_name == 'main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write

View file

@ -1,7 +1,7 @@
name: lightmeter name: lightmeter
description: A new Flutter project. description: A new Flutter project.
publish_to: "none" publish_to: "none"
version: 0.11.5+28 version: 0.11.8+30
environment: environment:
sdk: ">=3.0.0 <4.0.0" sdk: ">=3.0.0 <4.0.0"