docs: add example for Nuxt (Vue)
This commit is contained in:
parent
6bbc45593f
commit
6025194d82
50
README.md
50
README.md
|
@ -159,10 +159,10 @@ By pulling docker images, you can reduce the overall execution time of your work
|
|||
|
||||
### Static Site Generators with Node.js
|
||||
|
||||
[next.js], [nuxt.js], [gatsby], [hexo], [gitbook], [vuepress], [react-static], [gridsome], etc.
|
||||
[Next.js], [Nuxt.js], [gatsby], [hexo], [gitbook], [vuepress], [react-static], [gridsome], etc.
|
||||
|
||||
[next.js]: https://github.com/zeit/next.js
|
||||
[nuxt.js]: https://github.com/nuxt/nuxt.js
|
||||
[Next.js]: https://github.com/zeit/next.js
|
||||
[Nuxt.js]: https://github.com/nuxt/nuxt.js
|
||||
[gatsby]: https://github.com/gatsbyjs/gatsby
|
||||
[hexo]: https://github.com/hexojs/hexo
|
||||
[gitbook]: https://github.com/GitbookIO/gitbook
|
||||
|
@ -204,6 +204,50 @@ jobs:
|
|||
PUBLISH_DIR: ./public
|
||||
```
|
||||
|
||||
### Vue and Nuxt
|
||||
|
||||
An example for [Nuxt.js] (Vue.js) project with [create-nuxt-app]
|
||||
|
||||
[create-nuxt-app]: https://github.com/nuxt/create-nuxt-app
|
||||
|
||||
![peaceiris/actions-gh-pages latest version](https://img.shields.io/github/release/peaceiris/actions-gh-pages.svg?label=peaceiris%2Factions-gh-pages)
|
||||
|
||||
```yaml
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '10.16'
|
||||
|
||||
- name: install
|
||||
run: npm install
|
||||
|
||||
- name: test
|
||||
run: npm test
|
||||
|
||||
- name: generate
|
||||
run: npm run generate
|
||||
|
||||
- name: deploy
|
||||
uses: peaceiris/actions-gh-pages@v2.2.0
|
||||
env:
|
||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: ./dist
|
||||
```
|
||||
|
||||
### Static Site Generators with Python
|
||||
|
||||
[pelican], [MkDocs], [sphinx], etc.
|
||||
|
|
Loading…
Reference in New Issue