Skip to content

Commit

Permalink
Merge pull request #19 from Agilo/hotfix/banner-image
Browse files Browse the repository at this point in the history
hotfix: banner image
  • Loading branch information
anteprimorac authored Nov 28, 2023
2 parents 8f4e8c6 + 930221b commit bfd47ac
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 562 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
node-version: 20
registry-url: https://registry.npmjs.org/

- run: npm ci
- name: Install NPM dependencies
run: npm ci

# Setup PHP
- name: Setup PHP
Expand All @@ -50,27 +51,34 @@ jobs:
key: ${{ runner.os }}-php7.4-composer_v2-${{ hashFiles('wordpress-plugin/composer.lock') }}
restore-keys: ${{ runner.os }}-php7.4-composer_v2-

- run: composer install --prefer-dist --no-progress -d ./wordpress-plugin
- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress -d ./wordpress-plugin

# Build Medusa plugin
- run: npm -w medusa-plugin-wordpress run build
- name: Build Medusa plugin
run: npm -w medusa-plugin-wordpress run build
- run: cp README.md medusa-plugin/README.md

# Build WordPress plugin
- run: npm -w wordpress-plugin run build
- name: Build WordPress plugin
run: npm -w wordpress-plugin run build
- run: npm run generate:medusa-api
- run: rm -f wordpress-plugin/.gitignore
- run: mkdir wordpress-plugin/.github && cp .github/banner.png wordpress-plugin/.github/banner.png
- run: cp README.md wordpress-plugin/README.md

# Publish Medusa plugin
- run: npm -w medusa-plugin-wordpress publish
- name: Publish Medusa plugin
run: npm -w medusa-plugin-wordpress publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Publish WordPress plugin
- run: npm run publish:wp-plugin
- name: Publish WordPress plugin
run: npm run publish:wp-plugin

# Copy release to read-only repo
- name: Copy release
- name: Copy GitHub release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
Expand Down
276 changes: 0 additions & 276 deletions medusa-plugin/README.md

This file was deleted.

Loading

0 comments on commit bfd47ac

Please sign in to comment.