Merge pull request #51 from Emerald-awa/patch-10 #6
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: Build and Deploy to Netlify | |
| on: | |
| push: | |
| branches: | |
| - 'main' | |
| - 'master' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Dependencies | |
| run: | | |
| if [ -f requirements.txt ]; then | |
| pip install -r requirements.txt | |
| else | |
| pip install mkdocs mkdocs-material | |
| fi | |
| - name: Build MkDocs Site | |
| run: mkdocs build | |
| - name: Deploy to netlify | |
| uses: South-Paw/action-netlify-cli@2.0.0 | |
| with: | |
| args: deploy --dir=site --prod | |
| env: | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |