Skip to content

article: Lemniscat and Fabric #336

article: Lemniscat and Fabric

article: Lemniscat and Fabric #336

Workflow file for this run

name: ci
on:
push:
branches:
- master
- main
- article/*
- article/tips/*
- feat/*
jobs:
deploy-ToAzureWebAppPreview:
runs-on: ubuntu-latest
env:
SITE_URL: "https://pmorisseau-preview.azurewebsites.net"
environment: DEV
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install pygments==2.11.2
- run: pip install pymdown-extensions==9.3
- run: pip install mkdocs-material-relative-language-selector==1.1.4
- run: mkdocs build
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'pmorisseau'
slot-name: 'preview'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_5106C7953C464E13B6939CF4F5C03DFD }}
package: ./site/
deploy-ToGithubPages:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
env:
SITE_URL: "https://ineaweb.github.io/Blog"
environment: github-pages
needs: deploy-ToAzureWebAppPreview
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install pygments==2.11.2
- run: pip install pymdown-extensions==9.3
- run: pip install mkdocs-material-relative-language-selector==1.1.4
- run: mkdocs gh-deploy --force
deploy-ToAzureWebApp:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
env:
SITE_URL: "https://pmorisseau.ineaweb.net"
environment: PROD
needs: deploy-ToAzureWebAppPreview
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: pip install pygments==2.11.2
- run: pip install pymdown-extensions==9.3
- run: pip install mkdocs-material-relative-language-selector==1.1.4
- run: mkdocs build
- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'pmorisseau'
slot-name: 'production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_9BF4E1B6E36F473B8C45D1F717BB7891 }}
package: ./site/