|
1 | 1 | name: Create package |
2 | 2 | on: |
3 | | - workflow_dispatch: |
4 | | - inputs: |
5 | | - PACKAGE_VERSION: |
6 | | - description: 'Package Version' |
7 | | - required: true |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + PACKAGE_VERSION: |
| 6 | + description: 'Package Version' |
| 7 | + required: true |
8 | 8 | jobs: |
9 | | - tag: |
10 | | - name: New package |
11 | | - runs-on: ubuntu-latest |
12 | | - steps: |
13 | | - - name: Checkout code |
14 | | - uses: actions/checkout@v3 |
15 | | - |
16 | | - - name: Install Composer dependencies |
17 | | - uses: ramsey/composer-install@v3 |
18 | | - with: |
19 | | - composer-options: --no-dev --optimize-autoloader |
20 | | - |
21 | | - - name: Setup Node.js |
22 | | - uses: actions/setup-node@v3 |
23 | | - with: |
24 | | - node-version: '18' |
25 | | - |
26 | | - - name: Enable Corepack |
27 | | - run: corepack enable |
28 | | - |
29 | | - - name: Install dependencies |
30 | | - run: yarn install --immutable |
31 | | - |
32 | | - - name: Build assets |
33 | | - run: yarn build |
34 | | - |
35 | | - - name: Exclude files listed in .distignore |
36 | | - run: | |
37 | | - if [ -f .distignore ]; then |
38 | | - mkdir filtered |
39 | | - rsync -av --exclude-from='.distignore' . ./filtered |
40 | | - fi |
41 | | -
|
42 | | - - name: Create zip archive |
43 | | - run: | |
44 | | - cd filtered |
45 | | - zip -r ../monei-${{ github.event.inputs.PACKAGE_VERSION }}.zip . |
46 | | -
|
47 | | - - name: Upload artifact |
48 | | - uses: actions/upload-artifact@v4 |
49 | | - with: |
50 | | - name: monei-${{ github.event.inputs.PACKAGE_VERSION }} |
51 | | - path: monei-${{ github.event.inputs.PACKAGE_VERSION }}.zip |
52 | | - |
| 9 | + tag: |
| 10 | + name: New package |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Checkout code |
| 14 | + uses: actions/checkout@v4 |
| 15 | + |
| 16 | + - name: Install Composer dependencies |
| 17 | + uses: ramsey/composer-install@v3 |
| 18 | + with: |
| 19 | + composer-options: --no-dev --optimize-autoloader |
| 20 | + |
| 21 | + - name: Setup Node.js |
| 22 | + uses: actions/setup-node@v4 |
| 23 | + with: |
| 24 | + node-version-file: .nvmrc |
| 25 | + cache: yarn |
| 26 | + |
| 27 | + - name: Enable Corepack |
| 28 | + run: corepack enable |
| 29 | + |
| 30 | + - name: Install dependencies |
| 31 | + run: yarn install --immutable |
| 32 | + |
| 33 | + - name: Build assets |
| 34 | + run: yarn build |
| 35 | + |
| 36 | + - name: Exclude files listed in .distignore |
| 37 | + run: | |
| 38 | + if [ -f .distignore ]; then |
| 39 | + mkdir filtered |
| 40 | + rsync -av --exclude-from='.distignore' . ./filtered |
| 41 | + fi |
| 42 | +
|
| 43 | + - name: Create zip archive |
| 44 | + run: | |
| 45 | + cd filtered |
| 46 | + zip -r ../monei-${{ github.event.inputs.PACKAGE_VERSION }}.zip . |
| 47 | +
|
| 48 | + - name: Upload artifact |
| 49 | + uses: actions/upload-artifact@v4 |
| 50 | + with: |
| 51 | + name: monei-${{ github.event.inputs.PACKAGE_VERSION }} |
| 52 | + path: monei-${{ github.event.inputs.PACKAGE_VERSION }}.zip |
0 commit comments