[refactor]重构优化Playlist创建页,修正Playlist列表页的错误表现 #125
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android CI Daily Update | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
jobs: | |
build: | |
name: Build Apk And Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.4.2 | |
with: | |
repository: cy745/lmusic | |
ref: dev | |
ssh-strict: true | |
persist-credentials: true | |
clean: true | |
fetch-depth: 1 | |
lfs: false | |
submodules: true | |
- name: Create the Keystore from Secrets to Sign the App | |
env: | |
KEYSTORE_JKS_BASE64: ${{ secrets.KEYSTORE_JKS_BASE64 }} | |
KEYSTORE_PROPERTIES_BASE64: ${{ secrets.KEYSTORE_PROPERTIES_BASE64 }} | |
run: | | |
# Import keystore from secrets | |
ls -all | |
echo $KEYSTORE_JKS_BASE64 | base64 -di > ${{ github.workspace }}/keystore.jks | |
echo $KEYSTORE_PROPERTIES_BASE64 | base64 -di > ${{ github.workspace }}/keystore.properties | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew build | |
- name: Upload Apk to Artifact | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: LMusic-Apks | |
path: ${{ github.workspace }}/app/build/outputs/apk/release/*.apk | |
- name: Beta Release | |
uses: softprops/action-gh-release@v1 | |
if: contains(github.event.head_commit.message, '#beta') | |
with: | |
body: ${{ github.event.head_commit.message }} | |
draft: false | |
prerelease: true | |
tag_name: "Beta" | |
fail_on_unmatched_files: true | |
files: | | |
${{ github.workspace }}/app/build/outputs/apk/beta/*.apk | |
${{ github.workspace }}/app/build/outputs/apk/debug/*.apk |