Merge pull request #53 from sameeragunarathne/docusourus-migration #6
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: WSO2 Open Healthcare Docs Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| release-wso2-open-healthcare-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| # Full history so showLastUpdateTime can read per-file git dates. | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: en/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: en | |
| - name: Build Docusaurus site | |
| run: npm run build | |
| working-directory: en | |
| env: | |
| BASE_URL: /${{ github.event.repository.name }}/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: en/build |