Skip to content

Commit

Permalink
Fixup versions
Browse files Browse the repository at this point in the history
  • Loading branch information
AmniX committed Oct 21, 2024
1 parent d33fa08 commit 67eeb02
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:
java-version: 17
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
TAG=${{ github.event.release.tag_name }}
echo Version: TAG
echo "SDK_VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Deploy
uses: gradle/gradle-build-action@v3
Expand All @@ -58,7 +59,7 @@ jobs:
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
SDK_VERSION: ${GITHUB_REF_NAME#v}
SDK_VERSION: ${{ env.SDK_VERSION }}


deploy-app:
Expand All @@ -76,8 +77,9 @@ jobs:
java-version: 17
- name: Write release version
run: |
VERSION=${GITHUB_REF_NAME#v}
echo Version: $VERSION
TAG=${{ github.event.release.tag_name }}
echo Version: TAG
echo "SDK_VERSION=${TAG#v}" >> $GITHUB_ENV
- name: Setup local.properties
run: touch local.properties && echo "TEST_SERVER_URL=$TEST_SERVER_URL" >> local.properties
- name: Build SoundBud!
Expand All @@ -87,8 +89,7 @@ jobs:
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: example-android/build/outputs/apk/dev/release/example-android-dev-release.apk
asset_name: SoundBud-v$VERSION.apk
tag: $VERSION
asset_name: soundBud-release.apk
make_latest: false
env:
VERSION: ${GITHUB_REF_NAME#v}
SDK_VERSION: ${{ env.SDK_VERSION }}

0 comments on commit 67eeb02

Please sign in to comment.