mirror of
https://github.com/JetBrains/intellij-platform-plugin-template.git
synced 2026-09-23 04:20:34 +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:
|
||||
|
||||
Reference in New Issue
Block a user