mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 06:33:17 +08:00
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
|
### 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
|
[Next.js]: https://github.com/zeit/next.js
|
||||||
[nuxt.js]: https://github.com/nuxt/nuxt.js
|
[Nuxt.js]: https://github.com/nuxt/nuxt.js
|
||||||
[gatsby]: https://github.com/gatsbyjs/gatsby
|
[gatsby]: https://github.com/gatsbyjs/gatsby
|
||||||
[hexo]: https://github.com/hexojs/hexo
|
[hexo]: https://github.com/hexojs/hexo
|
||||||
[gitbook]: https://github.com/GitbookIO/gitbook
|
[gitbook]: https://github.com/GitbookIO/gitbook
|
||||||
@ -204,6 +204,50 @@ jobs:
|
|||||||
PUBLISH_DIR: ./public
|
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
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
```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
|
### Static Site Generators with Python
|
||||||
|
|
||||||
[pelican], [MkDocs], [sphinx], etc.
|
[pelican], [MkDocs], [sphinx], etc.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user