Merge pull request #33 from aridclown/main #90
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: Build Plugin | |
| on: push | |
| #on: | |
| # push: | |
| # branches: [ "master" ] | |
| # pull_request: | |
| # branches: [ "master" ] | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| env: | |
| CI_BUILD_VERSION: build.test.${{ github.run_number }} | |
| RUNNER_NUMBER: ${{ github.run_number }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Build | |
| run: | | |
| chmod 777 gradlew | |
| ./gradlew.bat buildPlugin | |
| # 展示所有文件 | |
| dir src/main/resources | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.CI_BUILD_VERSION }} | |
| path: build/distributions/*.zip |