Deploy Inversify docs to GitHub Pages #38
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: Deploy Inversify docs to GitHub Pages | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| name: Deploy inversify docusaurus site. | |
| environment: CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/setup | |
| - name: Compile source files | |
| run: pnpm run build --filter @inversifyjs/inversify-docs-site | |
| - uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd # v0.9.1 | |
| with: | |
| ssh-private-key: ${{ secrets.ROOT_DOC_PAGES_DEPLOYMENT_PRIVATE_KEY }} | |
| - name: Deploy to GitHub Pages | |
| env: | |
| USE_SSH: true | |
| run: | | |
| git config --global user.email "inversify.github.io.deploy@github.com" | |
| git config --global user.name "gh-actions" | |
| pnpm deploy:inversify:pages |