Skip to content

Commit

Permalink
fix: updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Dec 31, 2023
1 parent 8c13b62 commit 5fdc003
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 45 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@ jobs:
- name: Bump version code
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release --extends ./.releaserc.bump.json --dry-run --no-ci
run: npx semantic-release --extends ./.releaserc.bump.json --no-ci --dry-run

- name: Set env
run: echo "RELEASE_VERSION=$(cat .VERSION)" >> $GITHUB_ENV

- name: Get version code
- name: Bump pubspec version
run: |
echo "RELEASE_VERSION=v$(cat .VERSION)" >> $GITHUB_ENV
IFS='.' read -r -a nums <<< "${RELEASE_VERSION/-dev/}.0"
VERSIONCODE=$((nums[0] * 100000000 + nums[1] * 100000 + nums[2] * 100 + nums[3]))
sed -i "/^version/c\\version: ${{ env.RELEASE_VERSION }}+$VERSIONCODE" pubspec.yaml
- name: Rename APK
run: mv build/app/outputs/apk/release/app-release.apk revanced-manager-${{ env.RELEASE_VERSION }}.apk
run: mv build/app/outputs/apk/release/app-release.apk revanced-manager-v${{ env.RELEASE_VERSION }}.apk

- name: Publish release APK
env:
Expand Down
39 changes: 0 additions & 39 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"devDependencies": {
"@droidsolutions-oss/semantic-release-update-file": "^1.3.2",
"@saithodev/semantic-release-backmerge": "^4.0.1",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
Expand Down

0 comments on commit 5fdc003

Please sign in to comment.