Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Jan 29, 2024
1 parent a080e93 commit 304a7db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
- "android/**"
- "assets/**"
- "lib/**"
- ".releaserc.*"
- ".releaserc.js"
- "pubspec.yaml"

jobs:
Expand Down Expand Up @@ -54,5 +54,5 @@ jobs:
keyAlias: ${{ secrets.SIGNING_KEY_ALIAS }}
keyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
run: |
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > app/keystore.jks
echo "${{ secrets.SIGNING_KEYSTORE }}" | base64 --decode > android/app/keystore.jks
npx semantic-release
21 changes: 10 additions & 11 deletions .releaserc → .releaserc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
"branches": [
"main",
{
Expand All @@ -17,16 +17,15 @@
"@semantic-release/changelog",
"@semantic-release/release-notes-generator",
[
"@droidsolutions-oss/semantic-release-update-file",
"@semantic-release/exec",
{
"files": [
{
"path": ["pubspec.yaml"],
"type": "flutter",
"branches": ["main", "dev"]
}
]
}
step: [
'IFS="." read -r -a nums <<< "${${nextRelease.version}/-dev/}.0"',
'VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))',
'sed -i "/^version/c\\version: $VERSION+$VERSIONCODE" pubspec.yaml',
'flutter build apk'
].join(" && "),
},
],
[
"@semantic-release/git",
Expand Down Expand Up @@ -55,4 +54,4 @@
}
]
]
}
};

0 comments on commit 304a7db

Please sign in to comment.