Skip to content

Commit

Permalink
test upload without tar
Browse files Browse the repository at this point in the history
  • Loading branch information
etremblay committed Jan 22, 2024
1 parent cadc6a6 commit cea7241
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/php-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -581,14 +581,17 @@ jobs:
run: |
./script/tool API UpdateWsdl -v
- name: Tar build output
run: tar -cvf backend-build-output.tar $(ls -d composer.json vendor/ apps/**/wsdl/*.xml 2>/dev/null)
# - name: Tar build output
# run: tar -cvf backend-build-output.tar $(ls -d composer.json vendor/ apps/**/wsdl/*.xml 2>/dev/null)

- name: Store build artifact
uses: actions/upload-artifact@v4
with:
name: backend-build-output
path: backend-build-output.tar
path: |
composer.json
vendor/
apps/**/wsdl/*.xml
retention-days: 1
if-no-files-found: error

Expand Down Expand Up @@ -631,14 +634,16 @@ jobs:
fi
NO_COMPRESS=${SKIP_COMPRESSION} yarn build:production
- name: Tar build output
run: tar -cvf frontend-build-output.tar $(ls -d package.json ${{ inputs.frontend-build-path }} 2>/dev/null)
# - name: Tar build output
# run: tar -cvf frontend-build-output.tar $(ls -d package.json ${{ inputs.frontend-build-path }} 2>/dev/null)

- name: Store build artifact
uses: actions/upload-artifact@v4
with:
name: frontend-build-output
path: frontend-build-output.tar
path: |
package.json
${{ inputs.frontend-build-path }}
retention-days: 1
if-no-files-found: error

Expand All @@ -663,7 +668,7 @@ jobs:
always() &&
!contains(needs.*.result, 'failure') &&
!contains(needs.*.result, 'cancelled') &&
needs.setup.outputs.publishable == 'true' &&
# needs.setup.outputs.publishable == 'true' &&
!failure() &&
!cancelled()

Expand All @@ -679,8 +684,8 @@ jobs:
name: backend-build-output
path: .

- name: Un-tar backend build output
run: tar -xvf backend-build-output.tar
# - name: Un-tar backend build output
# run: tar -xvf backend-build-output.tar

- name: Download frontend build output
if: inputs.frontend
Expand All @@ -689,9 +694,9 @@ jobs:
name: frontend-build-output
path: .

- name: Un-tar frontend build output
if: inputs.frontend
run: tar -xvf frontend-build-output.tar
# - name: Un-tar frontend build output
# if: inputs.frontend
# run: tar -xvf frontend-build-output.tar

- name: Determine platforms to build
id: platforms
Expand Down Expand Up @@ -719,7 +724,7 @@ jobs:
name: ${{ matrix.image }}
dockerfile: ${{ matrix.dockerfile }}
platforms: ${{ steps.platforms.outputs.platforms }}
push: true
push: false
is-release: ${{ needs.setup.outputs.is-release }}
version: ${{ needs.setup.outputs.version }}

Expand Down

0 comments on commit cea7241

Please sign in to comment.