diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..10bdee0 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,19 @@ +name: Documentation Deploy +on: + push: + branches: + - main +jobs: + docs: + concurrency: ci-${{ github.ref }} + runs-on: ubuntu-latest + container: nimlang/nim + steps: + - uses: actions/checkout@v3 + - run: nimble -y doc --index:on --out:docs --project src/playdate/api.nim + - run: cp docs/api.html docs/index.html + - name: Deploy documents + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs diff --git a/.gitignore b/.gitignore index 4a0815f..2e9bb58 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ htmldocs/ src/tests/ pdex.bin *.pdx +docs # macOS general .DS_Store