Merge pull request #7 from fengyuecanzhu/dev

update actions
pull/12/head^2
fengyuecanzhu 3 years ago committed by GitHub
commit 355499df5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      .github/workflows/reader.yml

@ -2,7 +2,7 @@ name: Android CI
on: on:
release: release:
types: [published] types: [ published ]
push: push:
branches: branches:
- master - master
@ -14,21 +14,21 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# 获取打包秘钥 # 获取打包秘钥
- name: Checkout Android Keystore - name: Checkout Android Keystore
uses: actions/checkout@v2 uses: actions/checkout@v2
with: with:
repository: fengyuecanzhu/Key repository: fengyuecanzhu/Key
token: ${{ secrets.KEY_TOKEN }} # 连接仓库的token,需要单独配置 token: ${{ secrets.KEY_TOKEN }} # 连接仓库的token,需要单独配置
path: keystore # 仓库的根目录名 path: keystore # 仓库的根目录名
# 打包release # 打包release
- name: Build With Gradle - name: Build With Gradle
run: | run: |
echo "开始进行release构建" echo "开始进行release构建"
chmod +x gradlew chmod +x gradlew
./gradlew assembleAppRelease --parallel ./gradlew assembleAppRelease --build-cache --parallel
- name: Upload App To Artifact - name: Upload App To Artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: fyreader apk name: fyreader apk

Loading…
Cancel
Save