Skip to content

Commit ea672df

Browse files
authored
Update store.yml
1 parent 3852adb commit ea672df

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/store.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,37 +40,46 @@ jobs:
4040
StoreUpdate:
4141
needs: validatePlugin
4242
name: Update Store page
43-
container: ghcr.io/friendsofshopware/platform-plugin-dev:v6.4.7
4443
if: startsWith(github.ref, 'refs/tags/') || contains(github.event.head_commit.message, '[store update]')
4544
runs-on: ubuntu-latest
4645
steps:
46+
- name: Download shopware-cli
47+
run: |
48+
wget -q https://github.com/FriendsOfShopware/shopware-cli/releases/download/0.1.37/shopware-cli_0.1.37_Linux_x86_64.tar.gz
49+
tar -zxf shopware-cli_*.tar.gz shopware-cli
50+
sudo mv shopware-cli /usr/bin/shopware-cli
51+
rm shopware-cli_*.tar.gz
52+
4753
- name: Checkout
4854
uses: actions/checkout@v2.3.1
4955
with:
5056
path: ${{ env.PLUGIN_NAME }}
5157

5258
- name: StoreUpdate
53-
run: /opt/bin/plugin-uploader ext:update $(pwd)/${{ env.PLUGIN_NAME }}/
59+
run: shopware-cli account producer extension info push $(pwd)/${{ env.PLUGIN_NAME }}/
5460

5561
StoreRelease:
5662
if: startsWith(github.ref, 'refs/tags/')
5763
runs-on: ubuntu-latest
58-
container: ghcr.io/friendsofshopware/platform-plugin-dev:v6.4.7
5964
name: Upload Extension to Store
6065
steps:
66+
- name: Download shopware-cli
67+
run: |
68+
wget -q https://github.com/FriendsOfShopware/shopware-cli/releases/download/0.1.37/shopware-cli_0.1.37_Linux_x86_64.tar.gz
69+
tar -zxf shopware-cli_*.tar.gz shopware-cli
70+
sudo mv shopware-cli /usr/bin/shopware-cli
71+
rm shopware-cli_*.tar.gz
72+
6173
- name: Checkout
6274
uses: actions/checkout@v2.3.1
6375
with:
6476
path: ${{ env.PLUGIN_NAME }}
6577

6678
- name: Build & create zip
6779
run: |
68-
npm install --prefix "./${PLUGIN_NAME}/src/Resources/app/administration/"
69-
cp -r "./${PLUGIN_NAME}" "/plugins/${PLUGIN_NAME}"
70-
start-mysql
71-
pack-plugin "${PLUGIN_NAME}"
80+
shopware-cli extension zip --disable-git ${{ env.PLUGIN_NAME }}
7281
7382
- name: StoreUpload
74-
run: /opt/bin/plugin-uploader ext:upload $(pwd)/${PLUGIN_NAME}*.zip --createRelease
83+
run: shopware-cli account producer extension upload $(pwd)/${PLUGIN_NAME}*.zip
7584
env:
7685
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)