forked from tinkoff-ai/etna
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
49 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,55 +1,55 @@ | ||
name: Build old docs | ||
name: Build docs on PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-docs-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
poetry install -E "all docs" -vv | ||
- name: Install apt docs dependencies | ||
run: | | ||
sudo apt install pandoc | ||
- name: Build docs | ||
run: | | ||
cd docs | ||
cp ../examples/*.ipynb source/tutorials | ||
poetry run make clean ; poetry run make html | ||
mv build/html/ ../site | ||
env: | ||
CI_COMMIT_SHORT_SHA: ${{ github.sha }} | ||
WORKFLOW_NAME: ${{ github.workflow }} | ||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: "./site" | ||
production-branch: master | ||
alias: "unstable" | ||
production-deploy: false | ||
deploy-message: "Deploy from GitHub Actions" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
enable-commit-comment: true | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.8" | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
virtualenvs-create: true | ||
virtualenvs-in-project: true | ||
- name: Load cached venv | ||
id: cached-poetry-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: .venv | ||
key: venv-${{ runner.os }}-docs-${{ hashFiles('**/poetry.lock') }} | ||
- name: Install dependencies | ||
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true' | ||
run: | | ||
poetry install -E "all docs" -vv | ||
- name: Install apt docs dependencies | ||
run: | | ||
sudo apt install pandoc | ||
- name: Build docs | ||
run: | | ||
cd docs | ||
cp ../examples/*.ipynb source/tutorials | ||
poetry run make clean ; poetry run make html | ||
mv build/html/ ../site | ||
env: | ||
CI_COMMIT_SHORT_SHA: ${{ github.sha }} | ||
WORKFLOW_NAME: ${{ github.workflow }} | ||
- name: Deploy to Netlify | ||
uses: nwtgck/[email protected] | ||
with: | ||
publish-dir: './site' | ||
production-branch: master | ||
alias: "unstable" | ||
production-deploy: false | ||
deploy-message: "Deploy from GitHub Actions" | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
enable-commit-comment: true | ||
env: | ||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | ||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |