Skip to content

Commit

Permalink
Combine build outputs and store as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
bourquep committed Oct 30, 2024
1 parent 9beed34 commit 368d9d2
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,32 @@ jobs:
# --force is required for now, as NextJS references a React version that is not yet published.
- run: npm ci --force
- run: npm run build

# Upload artifacts for this locale
- uses: actions/upload-artifact@v4
with:
name: build-output-${{ matrix.build-locale }}
path: ./out/${{ matrix.build-locale }}
retention-days: 1

combine-builds:
needs: build
runs-on: ubuntu-latest

steps:
- name: Create combined directory
run: mkdir -p ./dist

# Download all locale builds
- uses: actions/download-artifact@v4
with:
pattern: build-output-*
path: ./out
merge-multiple: true

# Upload combined artifacts
- uses: actions/upload-artifact@v4
with:
name: combined-build-output
path: ./dist
retention-days: 1

0 comments on commit 368d9d2

Please sign in to comment.