Update README.md - #13770
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
|
spam |
There was a problem hiding this comment.
Pull request overview
This PR introduces a new GitHub Actions workflow intended to build and publish a Gradle package to GitHub Packages when a release is created.
Changes:
- Adds a
gradle-publish.ymlworkflow triggered onrelease: created - Sets up JDK 17, configures Gradle, and runs
./gradlew buildand./gradlew publish - Configures GitHub Packages publish credentials via
GITHUB_TOKEN
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: | ||
| java-version: '17' | ||
| distribution: 'temurin' | ||
| server-id: github # Value of the distributionManagement/repository/id field of the pom.xml | ||
| settings-path: ${{ github.workspace }} # location for the settings.xml file | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0 | ||
|
|
||
| - name: Build with Gradle | ||
| run: ./gradlew build | ||
|
|
||
| # The USERNAME and TOKEN need to correspond to the credentials environment variables used in | ||
| # the publishing section of your build.gradle | ||
| - name: Publish to GitHub Packages | ||
| run: ./gradlew publish | ||
| env: | ||
| USERNAME: ${{ github.actor }} | ||
| TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| - name: Set up JDK 17 | ||
| uses: actions/setup-java@v4 | ||
| with: |
| - name: Build with Gradle | ||
| run: ./gradlew build | ||
|
|
||
| # The USERNAME and TOKEN need to correspond to the credentials environment variables used in | ||
| # the publishing section of your build.gradle | ||
| - name: Publish to GitHub Packages | ||
| run: ./gradlew publish |
| name: Gradle Package | ||
|
|
||
| on: | ||
| release: | ||
| types: [created] |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13770 +/- ##
============================================
- Coverage 19.65% 19.64% -0.01%
+ Complexity 19792 19788 -4
============================================
Files 6368 6368
Lines 574881 574881
Branches 70351 70351
============================================
- Hits 112970 112959 -11
- Misses 449639 449651 +12
+ Partials 12272 12271 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
This PR...
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?