mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-10-09 13:02:31 +00:00
GitHub Actions - simplify plugin artifact upload in GitHub Actions workflow
This commit is contained in:
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@@ -57,23 +57,12 @@ jobs:
|
|||||||
- name: Build plugin
|
- name: Build plugin
|
||||||
run: ./gradlew buildPlugin
|
run: ./gradlew buildPlugin
|
||||||
|
|
||||||
# Prepare plugin archive content for creating artifact
|
|
||||||
- name: Prepare Plugin Artifact
|
|
||||||
id: artifact
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
cd ${{ github.workspace }}/build/distributions
|
|
||||||
FILENAME=`ls *.zip`
|
|
||||||
unzip "$FILENAME" -d content
|
|
||||||
|
|
||||||
echo "filename=${FILENAME:0:-4}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# Store an already-built plugin as an artifact for downloading
|
# Store an already-built plugin as an artifact for downloading
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v6
|
uses: actions/upload-artifact@v6
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.artifact.outputs.filename }}
|
name: plugin-distribution
|
||||||
path: ./build/distributions/content/*/*
|
path: ./build/distributions/*.zip
|
||||||
|
|
||||||
# Run tests and upload a code coverage report
|
# Run tests and upload a code coverage report
|
||||||
test:
|
test:
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
- Dependencies - upgrade `org.jetbrains.intellij.platform` to `2.16.0`
|
- Dependencies - upgrade `org.jetbrains.intellij.platform` to `2.16.0`
|
||||||
- Dependencies - upgrade IntelliJ IDEA to `2025.2.6.2`
|
- Dependencies - upgrade IntelliJ IDEA to `2025.2.6.2`
|
||||||
|
- GitHub Actions - simplify plugin artifact upload in GitHub Actions workflow
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user