CI #2447
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: CI | |
| on: | |
| push: | |
| # schedule: | |
| # - cron: '9 * * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| generate: | |
| runs-on: ubuntu-latest | |
| name: Generate HTML | |
| steps: | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.9 | |
| - name: Checkout this repo | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/kantoniko.github.io' | |
| path: kantoniko.github.io | |
| - name: Checkout the ladino-diksionaryo-code | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-diksionaryo-code' | |
| path: ladino-diksionaryo-code | |
| - name: Checkout the ladino-diksionaryo-data | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-diksionaryo-data' | |
| path: ladino-diksionaryo-data | |
| - name: Checkout ladino-pages | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-pages' | |
| path: ladino-pages | |
| - name: Checkout Enkontros de Alhad | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/enkontros-de-alhad' | |
| path: enkontros-de-alhad | |
| - name: Checkout the ladino-diksionaryo-sounds | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-diksionaryo-sounds' | |
| path: ladino-diksionaryo-sounds | |
| - name: Checkout ladino-los-ladinadores | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-los-ladinadores' | |
| path: ladino-los-ladinadores | |
| - name: Checkout the ladino-estamos-whatsapeando | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-estamos-whatsapeando' | |
| path: ladino-estamos-whatsapeando | |
| - name: Checkout the ladino-una-fraza-al-diya | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-una-fraza-al-diya' | |
| path: ladino-una-fraza-al-diya | |
| - name: Checkout ladino-salu-lulu | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: 'kantoniko/ladino-salu-lulu' | |
| path: ladino-salu-lulu | |
| - name: Install dependencies | |
| run: | | |
| printenv | sort | |
| python -V | |
| pip install -r ladino-diksionaryo-code/requirements.txt | |
| - name: Generate HTML pages | |
| run: | | |
| kantoniko.github.io/generate.sh | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: diksionaryo-ladino | |
| path: ladino-diksionaryo-code/pdf | |
| - uses: actions/upload-artifact@v6 | |
| with: | |
| name: hunspell | |
| path: _site/hunspell | |
| # Deployment job | |
| deploy: | |
| if: github.ref == 'refs/heads/main' | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: generate | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |