mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-09-22 11:54:40 +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
|
||||
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
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v6
|
||||
with:
|
||||
name: ${{ steps.artifact.outputs.filename }}
|
||||
path: ./build/distributions/content/*/*
|
||||
name: plugin-distribution
|
||||
path: ./build/distributions/*.zip
|
||||
|
||||
# Run tests and upload a code coverage report
|
||||
test:
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
|
||||
- Dependencies - upgrade `org.jetbrains.intellij.platform` to `2.16.0`
|
||||
- Dependencies - upgrade IntelliJ IDEA to `2025.2.6.2`
|
||||
- GitHub Actions - simplify plugin artifact upload in GitHub Actions workflow
|
||||
|
||||
### Removed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user