(chore) Update translations from Transifex (#1843) #111
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 GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| env: | |
| TURBO_API: 'http://127.0.0.1:9080' | |
| TURBO_TOKEN: 'turbo-token' | |
| TURBO_TEAM: ${{ github.repository_owner }} | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| actions: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| - name: Cache dependencies | |
| id: cache | |
| uses: actions/cache@v5 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
| - name: Install dependencies | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: yarn install --immutable | |
| - name: Setup local cache server for Turborepo | |
| uses: felixmosh/turborepo-gh-artifacts@v4 | |
| with: | |
| repo-token: ${{ secrets.GITHUB_TOKEN }} | |
| server-token: ${{ env.TURBO_TOKEN }} | |
| - name: Build Storybook | |
| run: yarn turbo run build --filter=@openmrs/storybook | |
| env: | |
| STORYBOOK_BASE_PATH: /${{ github.event.repository.name }}/storybook/ | |
| - name: Rename API.md to index.md so Jekyll renders it as index.html | |
| run: mv packages/framework/esm-framework/docs/API.md packages/framework/esm-framework/docs/index.md | |
| - name: Render API docs to HTML via Jekyll | |
| uses: actions/jekyll-build-pages@v1 | |
| with: | |
| source: packages/framework/esm-framework/docs | |
| destination: _api_site | |
| - name: Assemble final site (API docs + Storybook) | |
| run: | | |
| rm -rf _site | |
| mkdir -p _site | |
| cp -a _api_site/. _site/ | |
| cp -a packages/tooling/storybook/dist _site/storybook | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deploy.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deploy | |
| uses: actions/deploy-pages@v4 |