fix(pipeline): Disable configuration cache for build and verification… #10
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: Build and Release HTML-Attribute-Folder | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout project sources | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| ref: ${{ github.ref }} | |
| - name: Get the version | |
| id: versions | |
| run: echo "TAGGED_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Validate Version | |
| id: check_version | |
| run: | | |
| if [[ "${{ steps.versions.outputs.TAGGED_VERSION }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | |
| echo "valid=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "valid=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Get branch data | |
| uses: tj-actions/branch-names@v7 | |
| id: branches | |
| # For debugging purposes | |
| - name: Debug | |
| shell: bash | |
| run: | | |
| echo "Version: ${{ steps.versions.outputs.TAGGED_VERSION }}" | |
| echo "Branch : ${{ steps.branches.outputs.base_ref_branch || steps.branches.outputs.current_branch }}" | |
| - name: Build and Test | |
| uses: ./.github/actions/build | |
| with: | |
| version: ${{ steps.versions.outputs.TAGGED_VERSION }} | |
| - name: Create GitHub Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| artifacts: "build/distributions/html-attribute-folder-*.zip" | |
| name: "Release v${{ steps.versions.outputs.TAGGED_VERSION }}" | |
| tag: "v${{ steps.versions.outputs.TAGGED_VERSION }}" | |
| prerelease: ${{ steps.check_version.outputs.valid != 'true' }} | |
| allowUpdates: true | |
| - name: Create IntelliJ's Marketplace Release | |
| # Publish only valid semantic (real) versions | |
| if: steps.check_version.outputs.valid == 'true' | |
| run: ./gradlew publishPlugin -PpluginVersion=${{ steps.versions.outputs.TAGGED_VERSION }} --no-configuration-cache --no-build-cache | |
| env: | |
| PUBLISH_TOKEN: ${{ secrets.JETBRAINS_MARKETPLACE_TOKEN }} |