Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: simplify build and draft release jobs #30

Merged
merged 1 commit into from
Mar 10, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 18 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,22 +77,18 @@ jobs:
- name: Run Build
run: ./gradlew clean pluginZip --info

# 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 already-built plugin as an artifact for downloading
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.artifact.outputs.filename }}
path: ./build/distributions/content/*/*
name: zip-artifacts
path: ./build/distributions/*.zip

- name: Upload Release Notes
uses: actions/upload-artifact@v4
with:
name: release-notes
path: RELEASE_NOTES.md

# Prepare a draft release for GitHub Releases page for the manual verification
# If accepted and published, release workflow would be triggered
Expand All @@ -119,8 +115,16 @@ jobs:
- name: Download Build Artifacts
uses: actions/download-artifact@v4
with:
name: release-artifacts
name: zip-artifacts
path: artifacts/
- name: Display the Zip files that are going to be attached
run: ls -R artifacts/

- name: Download Release Notes
uses: actions/download-artifact@v4
with:
name: release-notes
path: notes/

# Create new release draft - which is not publicly visible and requires manual acceptance
- name: Create Release Draft
Expand All @@ -131,4 +135,4 @@ jobs:
--draft artifacts/* \
--target ${GITHUB_REF_NAME} \
--title "v${{ needs.build.outputs.version }}" \
--notes-file RELEASE_NOTES.md
--notes-file notes/RELEASE_NOTES.md
Loading