Skip to content

fix: Disable hover option when autoplay is enabled in VideoEdit compo… #632

fix: Disable hover option when autoplay is enabled in VideoEdit compo…

fix: Disable hover option when autoplay is enabled in VideoEdit compo… #632

name: Publish Plugin to WordPress.org
on:
push:
tags:
- '*'
branches:
- develop
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- name: Install dependencies & build assets
shell: bash
run: |
composer install --no-dev --optimize-autoloader
npm install
npm run build:prod
- name: WordPress Plugin Deploy
id: deploy
uses: 10up/action-wordpress-plugin-deploy@2.3.0
with:
generate-zip: 'true'
dry-run: ${{ startsWith(github.ref, 'refs/tags/dry') || github.ref == 'refs/heads/develop' }}
env:
SLUG: 'godam'
ASSETS_DIR: 'wp-assets'
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
VERSION: '${{ github.ref_name }}'
- name: Repack Artifact
shell: bash
run: |
# Extract the plugin ZIP to a temporary directory
mkdir -p "${{ runner.temp }}/plugin-extract"
unzip -q "${{ steps.deploy.outputs.zip-path }}" -d "${{ runner.temp }}/plugin-extract"
# Create a properly structured ZIP for WordPress installation
cd "${{ runner.temp }}/plugin-extract"
zip -r -q "${{ runner.temp }}/godam.zip" .
# Move the new ZIP to the workspace root for release upload
mv "${{ runner.temp }}/godam.zip" "${{ github.workspace }}/godam.zip"
- name: Upload Test Artifact
if: startsWith(github.ref, 'refs/tags/dry') || github.ref == 'refs/heads/develop'
uses: actions/upload-artifact@v6.0.0
with:
name: godam
path: '${{ runner.temp }}/plugin-extract/'
- name: Upload Release Artifact
if: startsWith(github.ref, 'refs/tags/dry') == false && github.ref != 'refs/heads/develop'
uses: softprops/action-gh-release@v2.5.0
with:
files: |
'${{ github.workspace }}/godam.zip'
token: '${{ github.token }}'
tag_name: ${{ github.ref_name }}
draft: true