feat(project setup): K2适配,优化项目配置流程及模块选择 #34
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: taboolib-development Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v2 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| - name: Build with Gradle | |
| run: ./gradlew build shadowJar writeVersionToFile | |
| - name: Read Version From File | |
| id: read_version | |
| run: echo "VERSION=$(cat build/version.txt)" >> $GITHUB_ENV | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v2 | |
| with: | |
| name: taboolib-development-${{ env.VERSION }}-all | |
| path: build/libs/*-${{ env.VERSION }}-all.jar |