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