Rename paths#list
to paths#listDir
#74
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: Generate Docs | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Papyri | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: papyri-lang | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Compile Metis | |
run: ./gradlew shadowJar | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.11 | |
- name: Run the doc generator | |
run: python3 docs/gen.py | |
- name: Generate KDoc | |
run: ./gradlew dokkaHtml | |
- name: Fix permissions | |
run: | | |
chmod -c -R +rX "gendocs/" | while read line; do | |
echo "::warning title=Invalid file permissions automatically fixed::$line" | |
done | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: gendocs/ | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
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 |