manutenção do site #161
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy documentação | |
run-name: manutenção do site | |
on: | |
push: | |
branches: main | |
jobs: | |
Deploy-Mkdocs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.0.0 | |
- name: setup python | |
uses: actions/setup-python@v4.7.0 | |
- 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/checkout@v4.0.0 | |
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 "automatic-action@automatic.com" | |
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 |