Skip to content

Commit

Permalink
ci: 🎡 build docs before deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
shufo committed May 20, 2020
1 parent 1f9ba4f commit 3541351
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- run: yarn run test
- run: yarn run generate:deploy --fail-on-page-error

# generate docs
- run: yarn run docs:build

- name: archive dist
uses: actions/upload-artifact@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
env:
GOOGLE_ANALYTICS_ID: ${{ secrets.GOOGLE_ANALYTICS_ID }}

# generate docs
- run: yarn run docs:build

- name: Temporarily disable "include administrators" branch protection
uses: benjefferies/branch-protection-bot@master
if: always()
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- run: yarn run generate:dev --fail-on-page-error
- run: "echo \"User-agent: *\nDisallow: /\" > ./dist/robots.txt"

# generate docs
- run: yarn run docs:build

- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down

0 comments on commit 3541351

Please sign in to comment.