Create static target (#6) #8
Workflow file for this run
This file contains hidden or 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: Publish AARs on Tag | |
| on: | |
| push: | |
| tags: | |
| - '*' # runs on every new tag | |
| jobs: | |
| publish: | |
| runs-on: mobile | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Clean .build folder | |
| run: | | |
| rm -rf .build/ | |
| - name: Skip upgrade | |
| run: | | |
| skip upgrade | |
| - name: Export Debug AARs | |
| run: | | |
| skip export --module LemonKit --no-export-project -d android/lib/debug/ --debug | |
| - name: Export Release AARs | |
| run: | | |
| skip export --module LemonKit --no-export-project -d android/lib/release/ --release | |
| - name: Publish AARs | |
| working-directory: android | |
| env: | |
| VERSION_NAME: ${{ github.ref_name }} | |
| GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| ./gradlew publish |