Disable Maven Central publishing #7
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Build with Maven | |
| run: mvn -B clean package --no-transfer-progress --file pom.xml | |
| - name: Run tests | |
| run: mvn -B test --no-transfer-progress --file pom.xml | |
| # Maven Central publishing is disabled - configure secrets to enable | |
| # publish-maven: | |
| # name: Publish to Maven Central | |
| # runs-on: ubuntu-latest | |
| # needs: test | |
| # steps: | |
| # - name: Checkout code | |
| # uses: actions/checkout@v4 | |
| # | |
| # - name: Set up JDK 17 | |
| # uses: actions/setup-java@v4 | |
| # with: | |
| # java-version: '17' | |
| # distribution: 'temurin' | |
| # cache: maven | |
| # | |
| # - name: Configure Git | |
| # run: | | |
| # git config --global user.email "[email protected]" | |
| # git config --global user.name "GitHub Action" | |
| # | |
| # - name: Build with Maven | |
| # run: mvn -B clean package --no-transfer-progress --file pom.xml | |
| # | |
| # - name: Publish to Maven Central | |
| # run: mvn -B deploy --no-transfer-progress --file pom.xml | |
| # env: | |
| # MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| # MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| # MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | |
| github-release: | |
| name: Create GitHub Release | |
| runs-on: ubuntu-latest | |
| needs: test | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Create GitHub Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| name: Release ${{ github.ref_name }} | |
| body: | | |
| Version ${{ github.ref_name }} of WaveSpeed Java SDK. | |
| ## Installation | |
| Download the JAR file from the Assets section below and add it to your project's classpath. | |
| Alternatively, you can build from source: | |
| ```bash | |
| git clone https://github.com/WaveSpeedAI/wavespeed-java.git | |
| cd wavespeed-java | |
| mvn clean install | |
| ``` | |
| ## Changes | |
| See commit history for changes in this release. | |
| draft: false | |
| prerelease: false | |