ES translate main workshop done #40
This file contains hidden or 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 website ⚙️ | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/**' | |
| - 'docs/**' | |
| defaults: | |
| run: | |
| working-directory: docs | |
| jobs: | |
| build: | |
| name: Build and Deploy Website | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: Install requirements 📦 | |
| run: | | |
| sudo apt-get install -y python3-lxml | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Deploy 📦 | |
| run: mkdocs gh-deploy --strict --force --message 'update website via GitHub Actions' |