|
15 | 15 | # zip_mode defines how the build artifacts are packaged: |
16 | 16 | # - 'individual': creates one ZIP file per component (frontend, backend, exporter) |
17 | 17 | # - 'all': creates a single ZIP containing all components |
| 18 | + # - null: for the rest of cases (non-manual events) |
18 | 19 | description: 'Bundle packaging mode' |
19 | 20 | required: false |
20 | 21 | default: 'individual' |
|
62 | 63 | echo "📦 Packaging Penpot 'all' bundles..." |
63 | 64 | zip -r zips/penpot-all-bundles.zip penpot |
64 | 65 |
|
65 | | - - name: Create zip bundles for zip_mode == 'individual' |
66 | | - if: ${{ github.event.inputs.zip_mode == 'individual' }} |
| 66 | + - name: Create zip bundles for zip_mode != 'all' |
| 67 | + if: ${{ github.event.inputs.zip_mode != 'all' }} |
67 | 68 | run: | |
68 | 69 | echo "📦 Packaging Penpot 'individual' bundles..." |
69 | 70 | zip -r zips/penpot-frontend.zip penpot/frontend |
|
78 | 79 | path: zips/penpot-all-bundles.zip |
79 | 80 |
|
80 | 81 | - name: Upload individual bundles |
81 | | - if: ${{ github.event.inputs.zip_mode == 'individual' }} |
| 82 | + if: ${{ github.event.inputs.zip_mode != 'all' }} |
82 | 83 | uses: actions/upload-artifact@v4 |
83 | 84 | with: |
84 | 85 | name: penpot-individual-bundles |
|
94 | 95 | aws s3 cp zips/penpot-all-bundles.zip s3://${{ secrets.S3_BUCKET }}/penpot-all-bundles-${{ steps.vars.outputs.commit_hash }}.zip |
95 | 96 |
|
96 | 97 | - name: Upload 'individual' bundles to S3 |
97 | | - if: ${{ github.event.inputs.zip_mode == 'individual' }} |
| 98 | + if: ${{ github.event.inputs.zip_mode != 'all' }} |
98 | 99 | run: | |
99 | 100 | for name in penpot-frontend penpot-backend penpot-exporter; do |
100 | 101 | aws s3 cp zips/${name}.zip s3://${{ secrets.S3_BUCKET }}/${name}-${{ steps.vars.outputs.gh_branch }}-latest.zip |
|
0 commit comments