diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index e8f82ae69ad..0200550c822 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -7,7 +7,9 @@ on: jobs: deploy: + runs-on: ubuntu-18.04 + steps: - uses: actions/checkout@v2 @@ -24,10 +26,9 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - run: | - yarn install --frozen-lockfile - yarn run test - yarn run generate:deploy --fail-on-page-error + - run: yarn install --frozen-lockfile + - run: yarn run test + - run: yarn run generate:deploy --fail-on-page-error env: GOOGLE_ANALYTICS_TRACKING_ID: UA-160592267-1 diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index f04d66ac90d..8cec27c930e 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -7,7 +7,9 @@ on: jobs: deploy: + runs-on: ubuntu-18.04 + steps: - uses: actions/checkout@v2 @@ -24,14 +26,14 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - run: | - yarn install --frozen-lockfile - yarn run test - yarn run generate:deploy --fail-on-page-error - echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt" + - run: yarn install --frozen-lockfile + - run: yarn run test + - run: yarn run generate:deploy --fail-on-page-error env: GOOGLE_ANALYTICS_TRACKING_ID: UA-160592267-2 + - run: "echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt" + - name: deploy uses: peaceiris/actions-gh-pages@v3 with: