From 9e109289ac2c3f669a237134903c4dd3d6bf8d92 Mon Sep 17 00:00:00 2001 From: Matt Meigs Date: Thu, 1 Feb 2024 10:13:20 -0500 Subject: [PATCH] build both artifacts --- .github/workflows/test-cloud.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/test-cloud.yml diff --git a/.github/workflows/test-cloud.yml b/.github/workflows/test-cloud.yml new file mode 100644 index 000000000..758c32cf4 --- /dev/null +++ b/.github/workflows/test-cloud.yml @@ -0,0 +1,33 @@ +on: + push: + branches: + - DOP-4247-build-artifacts +name: Test Lighthouse Score +jobs: + deploy: + permissions: write-all + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: '18.x' + - name: Access Build Data + uses: mongodb/docs-worker-actions/build-artifact@DOP-4247-build-artifact + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PROJECT_TO_BUILD: cloud-docs + - name: Build Snooty + env: + NPM_BASE_64_AUTH: ${{ secrets.NPM_BASE_64_AUTH }} + NPM_EMAIL: ${{ secrets.NPM_EMAIL }} + GATSBY_MANIFEST_PATH: snooty-metadata.json + run: | + npm ci --legacy-peer-deps + npm run build + - name: Save Artifact + uses: actions/upload-artifact@v4 + with: + name: lighthouse-build + path: | + public