New Embedding Example (#57) #13
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: DocC Runner | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| # A single job that builds and deploys the DocC documentation | |
| jobs: | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| container: | |
| image: swift:6.2-noble | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Install Swift SDK dependencies | |
| run: | | |
| apt-get -y update | |
| apt-get install -y libssl-dev make | |
| - name: Build DocC | |
| run: | | |
| make generate-docs | |
| echo "<script>window.location.href += \"/documentation/bedrockservice\"</script>" > docs/index.html; | |
| - name: Check docc rendered files are present | |
| run: | | |
| echo "Checking for required static assets..." | |
| find ./docs -name "css" -o -name "js" -o -name "favicon*" | |
| ls -la ./docs/ | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: 'docs' | |
| - id: deployment | |
| name: Deploy to GitHub Pages | |
| uses: actions/deploy-pages@v4 |