Make sure publish-pages action is reading our generated content. #2
Workflow file for this run
This file contains hidden or 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: 'Publish Docs Site' | |
| on: | |
| push: | |
| workflow_dispatch: | |
| permissions: | |
| pages: 'write' | |
| id-token: 'write' | |
| jobs: | |
| build: | |
| runs-on: 'ubuntu-latest' | |
| steps: | |
| - uses: 'actions/checkout@v4' | |
| - name: 'Generate HTML from Markdown' | |
| uses: 'ldeluigi/markdown-docs@latest' | |
| with: | |
| src: 'docs' | |
| dst: 'generated-pages' | |
| - name: 'Upload artifact' | |
| uses: 'actions/upload-pages-artifact@v3' | |
| deploy: | |
| environment: | |
| name: 'github-pages' | |
| url: '${{ steps.deployment.outputs.page_url }}' | |
| runs-on: 'ubuntu-latest' | |
| needs: 'build' | |
| steps: | |
| - name: 'Deploy to GitHub Pages' | |
| id: 'deployment' | |
| uses: 'actions/deploy-pages@v4' | |
| with: | |
| path: 'generated-pages' |