Skip to content

Commit

Permalink
fix ci (#35)
Browse files Browse the repository at this point in the history
* fix ci

* fix apk name.

* change workflow name.
  • Loading branch information
peanut996 authored Dec 23, 2024
1 parent 7cedcce commit eb1ea8f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/android-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CloudflareWarpSpeedTest Android CI/CD
name: Android

on:
push:
Expand Down Expand Up @@ -76,12 +76,12 @@ jobs:
env:
BUILD_TOOLS_VERSION: "34.0.0"

- name: Rename APK with Git SHA
- name: Rename APK with Version
if: startsWith(github.ref, 'refs/tags/v')
run: |
GIT_SHA=$(git rev-parse --short HEAD)
mv ${{ env.SIGNED_RELEASE_FILE }} android/app/build/outputs/apk/release/WARPTest-${GIT_SHA}.apk
echo "RELEASE_APK=android/app/build/outputs/apk/release/WARPTest-${GIT_SHA}.apk" >> $GITHUB_ENV
VERSION=${GITHUB_REF#refs/tags/}
mv ${{ env.SIGNED_RELEASE_FILE }} android/app/build/outputs/apk/release/CloudflareWarpSpeedTest-${VERSION}.apk
echo "RELEASE_APK=android/app/build/outputs/apk/release/CloudflareWarpSpeedTest-${VERSION}.apk" >> $GITHUB_ENV
- name: Create Release
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go

name: Go Build and Test
name: Go

on:
push:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Release for multiple platforms
name: Go Release

on:
release:
types: [created]
push:
tags:
- 'v*'
Expand Down

0 comments on commit eb1ea8f

Please sign in to comment.