|
53 | 53 | with: |
54 | 54 | ref: ${{ github.event.release.tag_name }} |
55 | 55 |
|
56 | | - - name: Import Apple certificate |
57 | | - uses: apple-actions/import-codesign-certs@v3 |
58 | | - with: |
59 | | - keychain: ${{ github.run_id }} |
60 | | - keychain-password: ${{ github.run_id }} |
61 | | - p12-file-base64: ${{ secrets.APPLE_CERT_DATA }} |
62 | | - p12-password: ${{ secrets.APPLE_CERT_PASSWORD }} |
63 | | - |
64 | 56 | # Validate wrapper |
65 | 57 | - name: Gradle Wrapper Validation |
66 | 58 | uses: gradle/actions/wrapper-validation@v3 |
@@ -156,50 +148,11 @@ jobs: |
156 | 148 | cd ../../binary |
157 | 149 | npm run build |
158 | 150 |
|
159 | | - # - name: Code sign darwin binaries |
160 | | - # run: | |
161 | | - # echo "Signing executable with keychain: ${{ github.run_id }}" |
162 | | - # codesign --sign - ../../binary/bin/darwin-x64/continue-binary |
163 | | - # codesign --sign - ../../binary/bin/darwin-arm64/continue-binary |
164 | | - |
165 | | - # - name: Sign darwin-arm64 binary |
166 | | - # uses: lando/code-sign-action@v2 |
167 | | - # with: |
168 | | - # file: ./binary/bin/darwin-arm64/continue-binary |
169 | | - # certificate-data: ${{ secrets.APPLE_CERT_DATA }} |
170 | | - # certificate-password: ${{ secrets.APPLE_CERT_PASSWORD }} |
171 | | - # apple-notary-user: ${{ secrets.APPLE_NOTARY_USER }} |
172 | | - # apple-notary-password: ${{ secrets.APPLE_NOTARY_PASSWORD }} |
173 | | - # apple-notary-tool: altool |
174 | | - # apple-team-id: 43XFLY66ZD |
175 | | - # apple-product-id: dev.continue.continue-binary |
176 | | - # options: --options runtime --entitlements entitlements.xml |
177 | 151 |
|
178 | 152 | # Build plugin |
179 | 153 | - name: Build plugin |
180 | 154 | run: ./gradlew buildPlugin |
181 | 155 |
|
182 | | - # Publish the plugin to JetBrains Marketplace |
183 | | - - name: Publish EAP Plugin |
184 | | - if: github.event_name == 'release' || github.event.inputs.publish_build == 'true' |
185 | | - env: |
186 | | - PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} |
187 | | - CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} |
188 | | - PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} |
189 | | - PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} |
190 | | - RELEASE_CHANNEL: eap |
191 | | - run: ./gradlew publishPlugin |
192 | | - |
193 | | - - name: Publish Stable Plugin |
194 | | - if: github.event_name == 'release' || github.event.inputs.publish_build == 'true' |
195 | | - env: |
196 | | - PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} |
197 | | - CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} |
198 | | - PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} |
199 | | - PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} |
200 | | - RELEASE_CHANNEL: default |
201 | | - run: ./gradlew publishPlugin |
202 | | - |
203 | 156 | # Prepare plugin archive content for creating artifact |
204 | 157 | - name: Prepare Plugin Artifact |
205 | 158 | id: artifact |
@@ -474,68 +427,3 @@ jobs: |
474 | 427 | name: pluginVerifier-result |
475 | 428 | path: ${{ github.workspace }}/build/reports/pluginVerifier |
476 | 429 |
|
477 | | - upload-release: |
478 | | - if: false |
479 | | - name: Upload Release |
480 | | - needs: |
481 | | - - build |
482 | | - - test-binaries |
483 | | - - test |
484 | | - runs-on: ubuntu-latest |
485 | | - steps: |
486 | | - # # Update Unreleased section with the current release note |
487 | | - # - name: Patch Changelog |
488 | | - # if: ${{ steps.properties.outputs.changelog != '' }} |
489 | | - # env: |
490 | | - # CHANGELOG: ${{ steps.properties.outputs.changelog }} |
491 | | - # run: | |
492 | | - # ./gradlew patchChangelog --release-note="$CHANGELOG" |
493 | | - |
494 | | - - name: Download the plugin |
495 | | - uses: actions/download-artifact@v4 |
496 | | - with: |
497 | | - name: ${{ steps.artifact.outputs.filename }} |
498 | | - path: ./build/distributions/ |
499 | | - |
500 | | - # Upload artifact as a release asset |
501 | | - # - name: Upload Release Asset |
502 | | - # env: |
503 | | - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
504 | | - # run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/* |
505 | | - |
506 | | - # Publish the plugin to JetBrains Marketplace |
507 | | - - name: Publish Plugin |
508 | | - env: |
509 | | - PUBLISH_TOKEN: ${{ secrets.JETBRAINS_PUBLISH_TOKEN }} |
510 | | - CERTIFICATE_CHAIN: ${{ secrets.JETBRAINS_CERTIFICATE_CHAIN }} |
511 | | - PRIVATE_KEY: ${{ secrets.JETBRAINS_PRIVATE_KEY }} |
512 | | - PRIVATE_KEY_PASSWORD: ${{ secrets.JETBRAINS_PRIVATE_KEY_PASSWORD }} |
513 | | - run: ./gradlew publishPlugin |
514 | | - |
515 | | - # Create a pull request |
516 | | - - name: Create Pull Request |
517 | | - if: ${{ steps.properties.outputs.changelog != '' }} |
518 | | - env: |
519 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
520 | | - run: | |
521 | | - VERSION="${{ github.event.release.tag_name }}" |
522 | | - BRANCH="changelog-update-$VERSION" |
523 | | - LABEL="release changelog" |
524 | | -
|
525 | | - git config user.email "[email protected]" |
526 | | - git config user.name "GitHub Action" |
527 | | -
|
528 | | - git checkout -b $BRANCH |
529 | | - git commit -am "Changelog update - $VERSION" |
530 | | - git push --set-upstream origin $BRANCH |
531 | | -
|
532 | | - gh label create "$LABEL" \ |
533 | | - --description "Pull requests with release changelog update" \ |
534 | | - --force \ |
535 | | - || true |
536 | | -
|
537 | | - gh pr create \ |
538 | | - --title "Changelog update - \`$VERSION\`" \ |
539 | | - --body "Current pull request contains patched \`CHANGELOG.md\` file for the \`$VERSION\` version." \ |
540 | | - --label "$LABEL" \ |
541 | | - --head $BRANCH |
0 commit comments