🐛 Fix target to toc #30
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
name: Build and Deploy | |
on: | |
workflow_dispatch: | |
push: | |
branch: main | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🖥️ Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install pandoc weasyprint fonts-roboto # fonts-montserrat | |
- name: 🐍 Setup Python | |
uses: actions/setup-python@v2 | |
- name: 💿 Install dependencies | |
run: | | |
pip install -e . | |
- name: 🔧 Build | |
run: | | |
legal-text-processor reintegrate indexed-tariff-specific-conditions/??.yaml | |
legal-text-processor generate indexed-tariff-specific-conditions/ | |
- name: 📂 Generate Directory Listings | |
uses: jayanta525/[email protected] | |
with: | |
FOLDER: output | |
- name: 🚀 Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: output | |
- name: 🗨️ Notify | |
uses: Som-Energia/ghactions-notify@main | |
if: always() | |
with: | |
webhook: ${{ secrets.WEBHOOK_ALERTES_WEBAPPS }} | |