Skip to content

Commit 80eb0a2

Browse files
committed
Update paths in github action and add QODANA_TOKEN env variable
1 parent 4a02dc3 commit 80eb0a2

File tree

1 file changed

+9
-42
lines changed

1 file changed

+9
-42
lines changed

.github/workflows/jetbrains-build.yml

Lines changed: 9 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
id: artifact
8787
shell: bash
8888
run: |
89-
cd ${{ github.workspace }}/build/distributions
89+
cd ${{ github.workspace }}/jetbrains/build/distributions
9090
FILENAME=`ls *.zip`
9191
unzip "$FILENAME" -d content
9292
@@ -97,7 +97,7 @@ jobs:
9797
uses: actions/upload-artifact@v4
9898
with:
9999
name: ${{ steps.artifact.outputs.filename }}
100-
path: ./build/distributions/content/*/*
100+
path: ./jetbrains/build/distributions/content/*/*
101101

102102
# Run tests and upload a code coverage report
103103
test:
@@ -131,19 +131,20 @@ jobs:
131131
uses: actions/upload-artifact@v4
132132
with:
133133
name: tests-result
134-
path: ${{ github.workspace }}/build/reports/tests
134+
path: ${{ github.workspace }}/jetbrains/build/reports/tests
135135

136136
# Upload the Kover report to CodeCov
137137
- name: Upload Code Coverage Report
138138
uses: codecov/codecov-action@v5
139139
with:
140-
files: ${{ github.workspace }}/build/reports/kover/report.xml
140+
files: ${{ github.workspace }}/jetbrains/build/reports/kover/report.xml
141141

142142
# Run Qodana inspections and provide report
143143
inspectCode:
144144
name: Inspect code
145145
needs: [ build ]
146146
runs-on: ubuntu-latest
147+
environment: Github Actions
147148
permissions:
148149
contents: write
149150
checks: write
@@ -176,6 +177,9 @@ jobs:
176177
uses: JetBrains/qodana-action@v2024.2
177178
with:
178179
cache-default-branch-only: true
180+
env:
181+
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
182+
continue-on-error: true
179183

180184
# Run plugin structure verification along with IntelliJ Plugin Verifier
181185
verify:
@@ -223,41 +227,4 @@ jobs:
223227
uses: actions/upload-artifact@v4
224228
with:
225229
name: pluginVerifier-result
226-
path: ${{ github.workspace }}/build/reports/pluginVerifier
227-
228-
# Prepare a draft release for GitHub Releases page for the manual verification
229-
# If accepted and published, release workflow would be triggered
230-
releaseDraft:
231-
name: Release draft
232-
if: github.event_name != 'pull_request'
233-
needs: [ build, test, inspectCode, verify ]
234-
runs-on: ubuntu-latest
235-
permissions:
236-
contents: write
237-
steps:
238-
239-
# Check out the current repository
240-
- name: Fetch Sources
241-
uses: actions/checkout@v4
242-
243-
# Remove old release drafts by using the curl request for the available releases with a draft flag
244-
- name: Remove Old Release Drafts
245-
env:
246-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
247-
run: |
248-
gh api repos/{owner}/{repo}/releases \
249-
--jq '.[] | select(.draft == true) | .id' \
250-
| xargs -I '{}' gh api -X DELETE repos/{owner}/{repo}/releases/{}
251-
252-
# Create a new release draft which is not publicly visible and requires manual acceptance
253-
- name: Create Release Draft
254-
env:
255-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
256-
run: |
257-
gh release create "v${{ needs.build.outputs.version }}" \
258-
--draft \
259-
--title "v${{ needs.build.outputs.version }}" \
260-
--notes "$(cat << 'EOM'
261-
${{ needs.build.outputs.changelog }}
262-
EOM
263-
)"
230+
path: ${{ github.workspace }}/jetbrains/build/reports/pluginVerifier

0 commit comments

Comments
 (0)