-
Notifications
You must be signed in to change notification settings - Fork 0
Accordion Hero Widget #2
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,7 @@ jobs: | |||||
| runs-on: ubuntu-latest | ||||||
| steps: | ||||||
| - name: Checkout code | ||||||
| uses: actions/checkout@v3 | ||||||
| uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Get Plugin Version | ||||||
| id: get_version | ||||||
|
|
@@ -22,31 +22,26 @@ jobs: | |||||
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||||||
| echo "::set-output name=version::$VERSION" | ||||||
|
|
||||||
| - name: Create ZIP | ||||||
| - name: Create Versioned ZIP | ||||||
| run: | | ||||||
| mkdir -p releases | ||||||
| zip -r releases/accordion-hero-slider.zip accordion-hero-slider -x "*.DS_Store*" "*.git*" | ||||||
| zip -r releases/accordion-hero-slider-v${{ env.VERSION }}.zip accordion-hero-slider -x "*.DS_Store*" "*.git*" | ||||||
|
||||||
| zip -r releases/accordion-hero-slider-v${{ env.VERSION }}.zip accordion-hero-slider -x "*.DS_Store*" "*.git*" | |
| zip -r releases/accordion-hero-slider-v${{ env.VERSION }}.zip accordion-hero-slider -x "*.DS_Store*" "*.git*" "*/README.md" |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,26 +1,25 @@ | ||||||
| # Accordion Hero Slider - Project Repository | ||||||
| # Custom Elementor Widgets Repository | ||||||
|
|
||||||
| This repository contains the source code for the **Accordion Hero Slider** Elementor widget. | ||||||
| This repository is a collection of premium, high-fidelity custom widgets for **Elementor**. Each widget is built as a standalone WordPress plugin for maximum portability and ease of use. | ||||||
|
|
||||||
| ## 📂 Repository Structure | ||||||
|
|
||||||
| - `accordion-hero-slider/`: The main plugin source code. | ||||||
| - `accordion-hero-slider/`: A premium horizontal accordion hero slider with industry-focused design. | ||||||
| - `.github/workflows/`: GitHub Actions for automated builds and releases. | ||||||
| - `releases/`: (Automated) Directory where the latest plugin ZIP files are stored. | ||||||
| - `build-zip.sh`: Shell script to manually package the plugin. | ||||||
| - `build-zip.sh`: Shell script to manually package specific widgets. | ||||||
|
|
||||||
| ## 🛠 For Developers | ||||||
|
|
||||||
| ### Building the Plugin | ||||||
| To package the plugin into a ZIP file locally, run: | ||||||
| ### Building a Widget | ||||||
| To package a specific widget into a ZIP file locally, run the build script. By default, it targets the `accordion-hero-slider`. | ||||||
| ```bash | ||||||
| ./build-zip.sh | ||||||
| ``` | ||||||
| This will create `releases/accordion-hero-slider.zip`. | ||||||
|
|
||||||
| ### GitHub Actions | ||||||
| - **PR Build**: Every Pull Request automatically generates a versioned ZIP file for testing. | ||||||
| - **Release**: Merging to `main` (or pushing a tag) will automatically create a new GitHub Release with the plugin ZIP attached. | ||||||
| - **PR Build**: Every Pull Request automatically generates versioned ZIP files for the modified widgets. | ||||||
|
||||||
| - **PR Build**: Every Pull Request automatically generates versioned ZIP files for the modified widgets. | |
| - **PR Build**: Every Pull Request automatically generates a versioned ZIP file for the modified `accordion-hero-slider` widget. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,16 +10,9 @@ VERSIONED_ZIP_NAME="accordion-hero-slider-v$VERSION.zip" | |
| # Create output directory if it doesn't exist | ||
| mkdir -p $OUTPUT_DIR | ||
|
|
||
| # Remove old zips | ||
| rm -f $OUTPUT_DIR/*.zip | ||
|
|
||
| # Create the zip file | ||
| # Create the versioned zip file | ||
| # Exclude git files and any other unnecessary local files | ||
| zip -r $OUTPUT_DIR/$ZIP_NAME $PLUGIN_DIR -x "*.DS_Store*" "*.git*" "*/README.md" | ||
|
|
||
| # Create a versioned copy | ||
| cp $OUTPUT_DIR/$ZIP_NAME $OUTPUT_DIR/$VERSIONED_ZIP_NAME | ||
| zip -r $OUTPUT_DIR/$VERSIONED_ZIP_NAME $PLUGIN_DIR -x "*.DS_Store*" "*.git*" | ||
|
||
|
|
||
| echo "✅ Build Complete!" | ||
| echo "📍 Main ZIP: $OUTPUT_DIR/$ZIP_NAME" | ||
| echo "📍 Versioned ZIP: $OUTPUT_DIR/$VERSIONED_ZIP_NAME" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The set-output command is deprecated in GitHub Actions. This command was deprecated in favor of environment files and will cause warnings or failures in future GitHub Actions runners. Use $GITHUB_OUTPUT instead of set-output.