GitHub Actions에서 Android 빌드 및 단위 테스트 및 DeployGate에 게시
1. 다음 DeployGate API 키와 사용자는 GitHub의 리포지토리 페이지에 있는 Settings→Secrets에서 추가하세요.
DEPLOYGATE_API_KEY ... DeployGate의 프로필 페이지에 나열되어 있습니다.
DEPLOYGATE_USER ... DeployGate의 사용자 이름
1. [Settings]를 클릭

2. [Secrets]를 클릭

3. 다음과 같이 [DEPLOYGATE_API_KEY] 및 [DEPLOYGATE_USER] 추가

4. 결국 이런 느낌

2. GitHub의 리포지토리 페이지에 있는 Actions에서 yml 파일을 추가합니다.
1. [Actions]를 클릭

2. Set up a workflow yourself를 클릭합니다.

3. 프로젝트 루트에/.github/workflows/main.yml이 있기 때문에 다음 내용을 copipe
yml 파일의 파일 이름은 무엇이든 좋다.
main.yml
name: Android CI
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: set up JDK 1.8
      uses: actions/setup-java@v1
      with:
        java-version: 1.8
    # The following generates a debug APK
    - name: Build with Gradle
      run: ./gradlew assembleDebug
    # The following is running unit tests
    - name: Unit Test
      run: ./gradlew test
    # The following is uploading debug apk to the deploygate
    - name: Distribute App
      run: |
       curl \
        -H "Authorization: token ${{secrets.DEPLOYGATE_API_KEY}}" \
        -F "file=@app/build/outputs/apk/debug/app-debug.apk" \
        -F "message=Any message" \
        "https://deploygate.com/api/users/${{secrets.DEPLOYGATE_USER}}/apps"
4. Start commit 버튼을 클릭하여 yml 파일을 리포지토리에 등록합니다.
5. 나머지는 리포지토리에 푸시 할 때마다 빌드, 단위 테스트, DeployGate에 debugAPK 업로드까지 수행합니다.
Reference
이 문제에 관하여(GitHub Actions에서 Android 빌드 및 단위 테스트 및 DeployGate에 게시), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/tkymato/items/31761fd4ad2f69285a56텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)