Skip to content

fix: deploy before build at github action #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Aug 14, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:

jobs:
build-and-deploy:
name: Deploy Docs
name: Test and Deploy Docs
runs-on: ubuntu-latest

steps:
Expand All @@ -24,25 +24,26 @@ jobs:
# npm run build --if-present
# npm run deploy
npm run test
npm run docs:build
# npm run changelog

# - name: Coveralls Parallel
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.ACCESS_TOKEN }}
# parallel: true
# path-to-lcov: ./coverage/lcov.info

# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.ACCESS_TOKEN }}
# parallel-finished: true

# - name: Build and Deploy Docs
# uses: JamesIves/github-pages-deploy-action@master
# env:
# ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
# BRANCH: gh-pages
# FOLDER: docs/.vuepress/dist
# BUILD_SCRIPT: npm install && npm run docs:build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/.vuepress/dist
BUILD_SCRIPT: npm run deploy
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"husky": {
"hooks": {
"pre-commit": "npm run deploy && git add . && lint-staged",
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
Expand Down
Binary file modified src/promise/images/promise-resolve.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading