Skip to content

Commit

Permalink
fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jun 3, 2021
1 parent c236849 commit 0a09433
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Expand Up @@ -40,8 +40,8 @@ jobs:
needs:
- deploy

steps:
- uses: actions/checkout@v2.3.4
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2.2.2
with:
Expand All @@ -50,14 +50,33 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install emmet-core emmet-builders
pip install -r requirements-docs.txt
- name: Generate changelog
uses: charmixer/auto-changelog-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_labels: dependencies

- name: Commit files
run: |
git config --local user.email "feedback@materialsproject.org"
git config --local user.name "materialsproject"
mv CHANGELOG.md docs/
git add docs/CHANGELOG.md && git commit -m 'Updated CHANGELOG.md'
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Build
run: mkdocs build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3.8.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./site
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
2 changes: 2 additions & 0 deletions requirements.txt
@@ -0,0 +1,2 @@
-r ./emmet-core/requirements.txt
-r ./emmet-builders/requirements.txt

0 comments on commit 0a09433

Please sign in to comment.