Skip to content

Initial commit

Initial commit #3

Workflow file for this run

name: Update index
on:
workflow_dispatch
push:

Check failure on line 4 in .github/workflows/update-index.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-index.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
branches: main
# mutex
concurrency:
group: update-index
cancel-in-progress: false
jobs:
create-index:
runs-on: ubuntu-latest
steps:
- name: Create index
run: |
set -euxo pipefail
curl -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/leanprover/lean4/releases > releases
curl -H "Authorization: ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/leanprover/lean4-nightly/releases > releases-nightly
jq -s '{version: "1", stable: .[0] | map(select(.prerelease)), beta: .[0] | map(select(.prerelease | not)), nightly: .[1]}' releases releases-nightly > index.json
- name: Create artifact
uses: actions/upload-artifact@v3
with:
name: index
path: index.json
deploy:
needs: create-index
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2