Skip to content

Publish metadata

Publish metadata #106

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
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
- name: Install dependencies
run: yarn
- name: Download GraphQL documents from Serlo repositories
run: yarn download-documents
- name: Generate coverage report of Serlo API
run: yarn generate-report
- 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