Skip to content
This repository has been archived by the owner on Mar 28, 2022. It is now read-only.

Commit

Permalink
update ci setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ohyama committed Mar 15, 2020
1 parent b89e4de commit 86d1db2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:

jobs:
deploy:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2

Expand All @@ -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

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ on:

jobs:
deploy:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v2

Expand All @@ -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:
Expand Down

0 comments on commit 86d1db2

Please sign in to comment.