test workflow
Some checks are pending
Build Plugin Zip / build-zip (push) Waiting to run

This commit is contained in:
j 2025-06-16 17:20:30 +10:00
parent a1927c3641
commit 5331fc9f24

View file

@ -0,0 +1,37 @@
name: Build Plugin Zip
on:
push:
branches:
- main
workflow_dispatch: # Manual trigger
jobs:
build-zip:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Get repo name
id: repo_name
run: echo "REPO_NAME=$(basename $(git rev-parse --show-toplevel))" >> $GITHUB_ENV
- name: Prepare zip folder
run: |
rm -rf /tmp/$REPO_NAME
mkdir -p /tmp/$REPO_NAME
cp -r ./src/* /tmp/$REPO_NAME/
- name: Create zip archive
run: |
cd /tmp
zip -r $REPO_NAME.zip $REPO_NAME
- name: Upload zip artifact
uses: actions/upload-artifact@v3
with:
name: ${{ env.REPO_NAME }}-plugin-zip
path: /tmp/${{ env.REPO_NAME }}.zip