Next.js Discord

Discord Forum

How to upload build artifacts from Turborepo to GitHub Actions?

Unanswered
Southern rough shrimp posted this in #help-forum
Open in Discord
Southern rough shrimpOP
I want a multi-job GitHub CI Workflow which:
1. Builds the monorepo and uploads the artifacts to Github
2. In a separate job, download the built artifacts and runs e2e testing

Why is this so difficult 😦

2 Replies

Southern rough shrimpOP
This is the summary.
However the artifact is only 9kb (doesn't contain the nextjs build)

      - name: Upload Build Artifacts
        uses: actions/upload-artifact@v4
        with:
          name: build-output
          path: |
            .turbo
            node_modules
            apps/web/.next # Next.js build output
            dist # If applicable for other packages
          retention-days: 7