From 2aa147cb54e13e4720aab27053c9a6fd3c7b8148 Mon Sep 17 00:00:00 2001 From: Parinita Mulak Date: Tue, 28 Jun 2022 10:04:28 -0700 Subject: [PATCH] ci: Remove cypress test from production deploy and update craft end point to production (#432) --- .github/workflows/on-publish.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/on-publish.yml b/.github/workflows/on-publish.yml index e267a2ca6..963d26888 100644 --- a/.github/workflows/on-publish.yml +++ b/.github/workflows/on-publish.yml @@ -7,7 +7,7 @@ on: jobs: nuxt-prod: - name: Nuxt build / Cypress tests / Netlify deploy + name: Netlify deploy runs-on: ubuntu-latest timeout-minutes: 20 steps: @@ -20,19 +20,7 @@ jobs: key: nuxt-site-${{ github.sha }} - run: npm run generate env: - CRAFT_ENDPOINT: ${{ secrets.CRAFT_ENDPOINT }} - LIBCAL_ENDPOINT: ${{ secrets.LIBCAL_ENDPOINT }} - LIBCAL_CLIENT_SECRET: ${{ secrets.LIBCAL_CLIENT_SECRET }} - LIBCAL_CLIENT_ID: ${{ secrets.LIBCAL_CLIENT_ID }} - S3_BUCKET: "https://static.library.ucla.edu/" - LIVE_PREVIEW: "dev" - - uses: cypress-io/github-action@2113e5bc19c45979ba123df6e07256d2aaba9a33 - with: - start: npx http-server ./dist -p 3000 - command-prefix: 'npx' - wait-on: http://localhost:3000 - env: - CRAFT_ENDPOINT: ${{ secrets.CRAFT_ENDPOINT }} + CRAFT_ENDPOINT: ${{ secrets.CRAFT_PROD_ENDPOINT }} LIBCAL_ENDPOINT: ${{ secrets.LIBCAL_ENDPOINT }} LIBCAL_CLIENT_SECRET: ${{ secrets.LIBCAL_CLIENT_SECRET }} LIBCAL_CLIENT_ID: ${{ secrets.LIBCAL_CLIENT_ID }} @@ -50,4 +38,3 @@ jobs: env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_PROD_LIBRARY_SITE_ID }} - CRAFT_ENDPOINT: ${{ secrets.CRAFT_PROD_ENDPOINT }}