Merge pull request #2 from Rethinger/claude/project-improvement-recom… #3
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 | |
| on: | |
| push: | |
| branches: ['**'] | |
| pull_request: | |
| release: | |
| types: [created] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build and test | |
| run: mvn -B clean package --file pom.xml | |
| - name: Upload plugin jar | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: story-plugin | |
| path: target/story-plugin-*.jar | |
| if-no-files-found: error | |
| publish: | |
| if: github.event_name == 'release' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '21' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build release jar | |
| run: mvn -B clean package --file pom.xml | |
| - name: Attach jar to release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: target/story-plugin-*.jar |