Release HtmlDom 1.0.17 #12
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*.*.*' | |
| permissions: | |
| contents: write | |
| packages: write | |
| jobs: | |
| release: | |
| name: Release and publish package | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Set up Java 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: '17' | |
| cache: gradle | |
| - name: Build release artifacts | |
| run: .\gradlew.bat clean test packageRelease --console=plain --no-daemon | |
| - name: Publish Maven packages to GitHub Packages | |
| shell: pwsh | |
| run: .\.github\scripts\publish-packages.ps1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Upload release artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: html-dom-${{ github.ref_name }}-artifacts | |
| path: | | |
| modules/**/build/libs/*.jar | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v3 | |
| with: | |
| name: HtmlDom ${{ github.ref_name }} | |
| body_path: RELEASE_NOTES.md | |
| generate_release_notes: true | |
| files: | | |
| modules/html-dom-desktop/build/libs/html-dom-aio-*.jar | |
| modules/html-dom-desktop/build/libs/html-dom-ui-*-bundled.jar | |
| modules/**/build/libs/*.jar |