Skip to content

Bump version 6.0.2

Bump version 6.0.2 #77

Workflow file for this run

# Automatically uploads the pushed plugin version to the Shopware Store.
name: Shopware Store Release
on:
push:
tags:
- '*'
env:
PLUGIN_NAME: FinSearch
PLUGIN_MIN_REQUIREMENT: ~6.6.0
SHOPWARE_CLI_ACCOUNT_EMAIL: ${{ secrets.ACCOUNT_USER }}
SHOPWARE_CLI_ACCOUNT_PASSWORD: ${{ secrets.ACCOUNT_PASSWORD }}
SHOPWARE_CLI_COMPANY_ID: 11618
jobs:
validatePlugin:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with Composer 2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, dom
coverage: xdebug
tools: composer:v2
- name: Install Shopware-CLI
run: |
curl -1sLf "https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.deb.sh" | sudo -E bash
sudo apt install shopware-cli
- name: Validate dependencies
run: composer validate
- name: Install dependencies
run: |
composer install
composer require shopware/core "${{ env.PLUGIN_MIN_REQUIREMENT }}" --no-update
- name: Validate plugin files
run: shopware-cli extension validate $(pwd)
- name: Build plugin release zip file
run: shopware-cli extension zip . --disable-git
storeRelease:
if: startsWith(github.ref, 'refs/tags/')
needs: validatePlugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup PHP with Composer 2
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: mbstring, dom
coverage: xdebug
tools: composer:v2
- name: Install Shopware-CLI
run: |
curl -1sLf "https://dl.cloudsmith.io/public/friendsofshopware/stable/setup.deb.sh" | sudo -E bash
sudo apt install shopware-cli
- name: Validate dependencies
run: composer validate
- name: Install dependencies
run: |
composer install
composer require shopware/core "${{ env.PLUGIN_MIN_REQUIREMENT }}" --no-update
- name: Get version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Build Plugin Release-Zipfile
run: shopware-cli extension zip . --disable-git
- name: Upload plugin to Shopware Store
run: shopware-cli account producer extension upload $(pwd)/${PLUGIN_NAME}.zip
- name: Create GitHub release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: ${{ steps.get_version.outputs.VERSION }}
body_path: 'docs/release/body.md'
draft: false
prerelease: false
- name: Upload release asset
id: upload_release_asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.workspace }}/${{ env.PLUGIN_NAME }}.zip
asset_name: ${{ env.PLUGIN_NAME }}-${{ steps.get_version.outputs.VERSION }}.zip
asset_content_type: application/zip