Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
feat: Switch to Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Jun 17, 2021
1 parent 13e09af commit 6fef16a
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 101 deletions.
71 changes: 71 additions & 0 deletions .github/workflows/store.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: StoreCheck
on:
push:
branches:
- master
tags:
- '*'

env:
PLUGIN_NAME: ${{ github.event.repository.name }}
ACCOUNT_USER: ${{ secrets.ACCOUNT_USER }}
ACCOUNT_PASSWORD: ${{ secrets.ACCOUNT_PASSWORD }}
PLUGIN_UPLOADER_VERSION: 0.3.11

jobs:
validatePlugin:
if: startsWith(github.ref, 'refs/tags/') != true
name: Check for Store compliance
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
path: ${{ env.PLUGIN_NAME }}

- name: getPluginUploader
run: wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/${{ env.PLUGIN_UPLOADER_VERSION }}/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar

- name: Build Zip
run: php frosh-plugin-upload.phar ext:zip ${PLUGIN_NAME}

- name: Validate Zip
run: php frosh-plugin-upload.phar ext:validate $(pwd)/${PLUGIN_NAME}*.zip

StoreUpdate:
needs: validatePlugin
name: Update Store page
if: startsWith(github.ref, 'refs/tags/') != true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
path: ${{ env.PLUGIN_NAME }}

- name: getPluginUploader
run: wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/${{ env.PLUGIN_UPLOADER_VERSION }}/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar

- name: StoreUpdate
run: php frosh-plugin-upload.phar ext:update $(pwd)/${{ env.PLUGIN_NAME }}/

StoreRelease:
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
name: Upload Extension to Store
steps:
- name: Checkout
uses: actions/[email protected]
with:
path: ${{ env.PLUGIN_NAME }}

- name: Download Extension Uploader
run: wget 'https://github.com/FriendsOfShopware/FroshPluginUploader/releases/download/${{ env.PLUGIN_UPLOADER_VERSION }}/frosh-plugin-upload.phar' -O frosh-plugin-upload.phar

- name: Build Zip
run: php frosh-plugin-upload.phar ext:zip ${PLUGIN_NAME}

- name: StoreUpload
run: php frosh-plugin-upload.phar ext:upload $(pwd)/${PLUGIN_NAME}*.zip --createRelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79 changes: 0 additions & 79 deletions .travis.yml

This file was deleted.

19 changes: 0 additions & 19 deletions build.sh

This file was deleted.

4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"installer-name": "FroshTemplateMail"
},
"require": {
"php": "^7.0",
"php": "^7.2",
"composer/installers": "~1.0"
},
"scripts": {
"test": "phpunit -c tests"
}
}
}
7 changes: 6 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xsi:noNamespaceSchemaLocation="../../../engine/Shopware/Components/Plugin/schema/plugin.xsd">
<label lang="de">FroshTemplateMail</label>
<label lang="en">FroshTemplateMail</label>
<version>1.1.0</version>
<version>1.1.1</version>
<copyright>Friends of Shopware</copyright>
<license>MIT</license>
<link>https://github.com/FriendsOfShopware/FroshTemplateMail/</link>
Expand Down Expand Up @@ -37,4 +37,9 @@
<changes lang="de">Shopware 5.6 Kompatiblität</changes>
<changes lang="en">Shopware 5.6 Compability</changes>
</changelog>

<changelog version="1.1.1">
<changes lang="de">Shopware 5.7 Kompatiblität</changes>
<changes lang="en">Shopware 5.7 Compability</changes>
</changelog>
</plugin>

0 comments on commit 6fef16a

Please sign in to comment.