mirror of
https://github.com/peaceiris/actions-gh-pages.git
synced 2025-07-15 14:43:21 +08:00
docs: add premise for dependencies management of Node.js and Python project
This commit is contained in:
parent
142a3920a3
commit
423f0009fd
10
README.md
10
README.md
@ -168,6 +168,10 @@ By pulling docker images, you can reduce the overall execution time of your work
|
|||||||
[react-static]: https://github.com/react-static/react-static
|
[react-static]: https://github.com/react-static/react-static
|
||||||
[gridsome]: https://github.com/gridsome/gridsome
|
[gridsome]: https://github.com/gridsome/gridsome
|
||||||
|
|
||||||
|
Premise: Dependencies are managed by `package.json` and `package-lock.json`
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: github pages
|
name: github pages
|
||||||
|
|
||||||
@ -206,6 +210,8 @@ jobs:
|
|||||||
[MkDocs]: https://github.com/mkdocs/mkdocs
|
[MkDocs]: https://github.com/mkdocs/mkdocs
|
||||||
[sphinx]: https://github.com/sphinx-doc/sphinx
|
[sphinx]: https://github.com/sphinx-doc/sphinx
|
||||||
|
|
||||||
|
Premise: Dependencies are managed by `requirements.txt`
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -233,10 +239,10 @@ jobs:
|
|||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r ./requirements.txt
|
pip install -r ./requirements.txt
|
||||||
|
|
||||||
- name: Build with MkDocs
|
- name: Build
|
||||||
run: mkdocs build
|
run: mkdocs build
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v2.2.0
|
uses: peaceiris/actions-gh-pages@v2.2.0
|
||||||
env:
|
env:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user