Skip to content

Merge pull request #254 from serlo/dependabot/pip/charset-normalizer-… #634

Merge pull request #254 from serlo/dependabot/pip/charset-normalizer-…

Merge pull request #254 from serlo/dependabot/pip/charset-normalizer-… #634

Workflow file for this run

name: Publish metadata
on:
push:
branches: ["main"]
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
- name: Install python requirements
run: pipenv install
- name: Download metadata from Serlo Metadata API
run: pipenv run python download_metadata.py public/serlo-metadata.json
- name: Generate RSS export for SODIX Mundo
run: pipenv run python convert2rss.py public/serlo-metadata.json public/serlo-metadata.rss
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4