Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHalko committed Dec 30, 2023
1 parent ba3b25e commit 3936d11
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 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
run: npx semantic-release

- name: Set env
run: echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
run: |
echo "RELEASE_VERSION=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV
- name: Rename APK
run: mv build/app/outputs/apk/release/app-release.apk revanced-manager-${{ env.RELEASE_VERSION }}.apk

- name: Publish release APK
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release --extends ./.releaserc.release.json
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: ${{ env.BRANCH == 'dev' }}
files: revanced-manager-${{ env.RELEASE_VERSION }}.apk
8 changes: 8 additions & 0 deletions .releaserc.bump.json → .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
}
]
}
],
[
"@semantic-release/git",
{
"assets": [
"pubspec.yaml"
]
}
]
]
}

0 comments on commit 3936d11

Please sign in to comment.