You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FYReader/.github/workflows/reader.yml

33 lines
836 B

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