Skip to content

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicochofly authored May 21, 2021
1 parent a98f4b4 commit bd0e07d
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ jobs:
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assembleRelease



# 获取apk版本号
- name: Get Version Name
uses: actions/github-script@v3
id: get-version
with:
script: |
const str=process.env.GITHUB_REF;
return str.substring(str.indexOf("v"));
result-encoding: string

# 创建release
- name: Create Release
id: create_release
Expand All @@ -31,8 +44,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

with:
tag_name: voiceview8
release_name: Release voiceview8
tag_name: ${{steps.get-version.outputs.result}}
release_name: Release ${{steps.get-version.outputs.result}}
# ${{ github.ref }}
draft: false
prerelease: false
Expand All @@ -48,15 +61,7 @@ jobs:



# # 获取apk版本号
# - name: Get Version Name
# uses: actions/github-script@v3
# id: get-version
# with:
# script: |
# const str=process.env.GITHUB_REF;
# return str.substring(str.indexOf("v"));
# result-encoding: string



# 上传至release的资源
Expand Down Expand Up @@ -131,9 +136,9 @@ jobs:



- name: install fir.im
run: sudo gem install fir-cli
- name: Upload to Fir.im
run: fir login ${{ secrets.FIRTOKEN }}
#- run: cd ~
- run: fir publish app/build/outputs/apk/release/app-release.apk
# - name: install fir.im
# run: sudo gem install fir-cli
# - name: Upload to Fir.im
# run: fir login ${{ secrets.FIRTOKEN }}
# #- run: cd ~
# - run: fir publish app/build/outputs/apk/release/app-release.apk

0 comments on commit bd0e07d

Please sign in to comment.