-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 1005 Bytes
/
app-zip.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: App Zip
on:
workflow_dispatch:
pull_request:
paths:
- 'Resources/**/*'
- 'templates/manifest.xml.twig'
- '.shopware-extension.yml'
- .github/workflows/app-zip.yml
jobs:
zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/check-manifest
- uses: shopware/github-actions/build-zip@main
with:
extensionName: SwagBraintreeApp
manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-php
- uses: ./.github/actions/check-manifest
- name: Generate manifest.xml
run: composer setup:manifest -- -f --env=prod
- uses: ./.github/actions/check-manifest
- name: Check manifest.xml
run: |
git update-index --refresh || printf ''
git diff-index "${{ github.sha }}" --quiet -- manifest.xml || (echo "Please run 'composer setup:manifest' to sync the manifest.xml" && exit 1)