-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try to make mkdocs automatic. * DOC: Add python 3.7 * mkdocs file missing * FIX: dependencies * Try to trust poetry * Trying with custom action * Using github action to install poetry * Another try * Multi-line command. * Better bash * Better bash * Better bash * Better bash * Added cocs_ci * *!*!*!*! * This should work * Trying to check token stuff. * We build the documentation only on master.
- Loading branch information
Showing
2 changed files
with
21 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: Publish docs via GitHub Pages | ||
|
||
on: | ||
on: push | ||
push: | ||
branches: | ||
- master | ||
|
@@ -13,8 +13,21 @@ jobs: | |
- name: Checkout master | ||
uses: actions/checkout@v1 | ||
|
||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install Poetry | ||
uses: Gr1N/setup-poetry@v2 | ||
|
||
- name: Deploy docs (1) | ||
run: | | ||
git config --global user.name "albop" | ||
git config --global user.email "[email protected]" | ||
git remote rm origin | ||
git remote add origin https://x-access-token:${PERSONAL_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
poetry install | ||
poetry run mkdocs gh-deploy --config-file ${GITHUB_WORKSPACE}/mkdocs.yml --force | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# CUSTOM_DOMAIN: optionaldomain.com | ||
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} |
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