Skip to content

Commit

Permalink
Deploy with github pages with actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhide committed Jan 24, 2020
1 parent 1fa35a3 commit 07a73b4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/yarn-build.yml
Expand Up @@ -13,12 +13,22 @@ jobs:

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
pwd
yarn install
yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
# PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./dist
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -14,6 +14,6 @@
},
"scripts": {
"dev": "parcel app/index.html app/samples/*.json",
"build": "rm -rf docs && parcel build --out-dir docs --public-url ./ --no-source-maps app/index.html"
"build": "rm -rf docs && parcel build --public-url ./ --no-source-maps app/index.html"
}
}

0 comments on commit 07a73b4

Please sign in to comment.