-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.29 KB
/
mkdocs-deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: deploy documentação
run-name: manutenção do site
on:
push:
branches: main
jobs:
Deploy-Mkdocs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: setup python
uses: actions/[email protected]
- name: install mkdocs
run: |
pip install mkdocs
pip install mkdocs-material
- name: build mkdocs
run: mkdocs build
working-directory: docs
- uses: actions/upload-artifact@v2
with:
name: docs
path: ./docs/site/
- uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
with:
repository: rucula-js/rucula-js.github.io
persist-credentials: false
token: ${{ secrets.PASS_RUC_DOC }}
- uses: actions/download-artifact@v2
with:
name: docs
- run: |
git config --global user.email "[email protected]"
git config --global user.name "automatic-action"
git remote set-url origin https://${{ secrets.USER }}:${{ secrets.PASS_RUC_DOC }}@github.com/rucula-js/rucula-js.github.io.git
git add .
git commit -m "automatic actions"
git push