Skip to content

Commit

Permalink
使用github 默认token
Browse files Browse the repository at this point in the history
关闭release action
  • Loading branch information
storytellerF committed Jul 8, 2023
1 parent 399b10e commit 4bcaea7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 75 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/android-release.yml

This file was deleted.

28 changes: 26 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Android CI

permissions:
contents: write

on:
push:
branches: [ "main" ]
pull_request:
tags:
- '*'
branches: [ "main" ]

jobs:
Expand Down Expand Up @@ -49,3 +52,24 @@ jobs:
with:
name: Signed app bundle
path: ${{steps.sign_app.outputs.signedReleaseFile}}

release:
name: Release APK
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Download APK from build
uses: actions/download-artifact@v3
with:
name: Signed app bundle
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: Release ${{ github.ref }}
files: ./*.apk

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ android {
applicationId "com.storyteller_f.fei"
minSdk 26
targetSdk 33
versionCode 5
versionName "1.4"
versionCode 6
versionName "1.6"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down

0 comments on commit 4bcaea7

Please sign in to comment.