Revert "使子进程正确输出颜色" #46
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 Forge Server Launcher | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: # 允许手动触发 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn clean package | |
| - name: List build outputs | |
| run: | | |
| echo "Listing target directory:" | |
| ls -la target/ | |
| - name: Upload JAR as artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: forge-server-launcher-action | |
| path: target/*.jar | |
| if-no-files-found: warn |