Skip to content

Commit

Permalink
Android CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pppscn committed Nov 22, 2021
1 parent 548fff9 commit d81273e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/SmsForwarder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,21 @@ jobs:
#在每个作业开始之前, GitHub 将为作业提取安装访问令牌。 令牌在作业完成后过期。
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
release_name: SmsForwarder ${{ github.ref }}
draft: false
prerelease: false
# 获取apk版本号
- name: Get Date
uses: ajilraju/[email protected]
# 获取当前日期
- name: Get Current Date
id: get-date
with:
args: date +%Y%m%d
result-encoding: string
run: echo "::set-output name=date::$(date +'%Y%m%d')"
# 获取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"));
return str.substring(str.indexOf("v")+1);
result-encoding: string
# 存档打包的文件
- name: Archive production artifacts
Expand All @@ -87,6 +84,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # 上传网址,无需改动
asset_path: app/build/outputs/apk/release/SmsForwarder_release_${{steps.get-date.outputs.result}}_${{steps.get-version.outputs.result}}.apk # 上传路径
asset_name: SmsForwarder_release_${{steps.get-date.outputs.result}}_${{steps.get-version.outputs.result}}.apk # 资源名
asset_path: app/build/outputs/apk/release/SmsForwarder_release_${{steps.get-date.outputs.date}}_${{steps.get-version.outputs.result}}.apk # 上传路径
asset_name: SmsForwarder_release_${{steps.get-date.outputs.date}}_${{steps.get-version.outputs.result}}.apk # 资源名
asset_content_type: application/vnd.android.package-archiv #资源类型
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

#### 钉钉机器人

* 任意拉两个人成立一个群组,然后将其他人踢出群
* 【PC端】任意拉两个人成立一个群组,然后将其他人踢出群(PS.【手机端】右上角+号,发起群聊,面对面建群,输入4位数字后,直接点击进入群聊)
* 在群设置->智能群助手->添加机器人,添加一个新的「自定义机器人」
* 自定义机器人,安全设置->加签,复制到「加签Secret」一栏
* 复制自定义机器人的链接中的"access_token="后面的内容到「设置Token」一栏
Expand Down Expand Up @@ -186,7 +186,6 @@
* 【可选】安全设置->签名校验,复制到「加签 Secret」一栏
* 点击【测试】按钮验证一下


#### PushPlus

* 前往 [PushPlus 官网](http://www.pushplus.plus)
Expand Down

0 comments on commit d81273e

Please sign in to comment.