Commit 56270bf
Changed files (1)
.github
workflows
.github/workflows/docs.yml
@@ -8,7 +8,7 @@ on:
- "README.md"
workflow_dispatch:
jobs:
- deploy-pages:
+ build-docs:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
permissions:
@@ -32,7 +32,23 @@ jobs:
- name: Run Dartdoc
run: dart doc .
- - name: Deploy API documentation to Github Pages
- uses: JamesIves/github-pages-deploy-action@v4.5.0
+ - name: Upload API documentation artifact
+ uses: actions/upload-pages-artifact@v1
with:
- folder: doc/api/
+ path: './doc/api/'
+
+ deploy-docs:
+ permissions:
+ contents: read
+ pages: write
+ id-token: write
+ runs-on: ubuntu-latest
+ needs: build-docs
+ environment:
+ name: github-pages
+ url: ${{steps.deployment.outputs.page_url}}
+ steps:
+ - name: Deploy artifact
+ id: deployment
+ uses: actions/deploy-pages@v1
+