docs(create-app): document community templates (#643) #30
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: 'dhis2: deploy (netlify)' | |
| # Requirements: | |
| # | |
| # - Org secrets: | |
| # DHIS2_BOT_NETLIFY_TOKEN | |
| # DHIS2_BOT_GITHUB_TOKEN | |
| # - Repo secrets: | |
| # NETLIFY_SITE_ID | |
| # - Customize the 'jobs.build.steps.netlify-deploy.publish-dir' property | |
| on: | |
| push: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow}}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| if: "!github.event.push.repository.fork && github.actor != 'dependabot[bot]'" | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20.x | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm build:docs | |
| - uses: nwtgck/[email protected] | |
| with: | |
| production-branch: 'master' | |
| production-deploy: true | |
| github-token: ${{ secrets.DHIS2_BOT_GITHUB_TOKEN }} | |
| deploy-message: 'Deploy documentation site from GitHub Actions' | |
| enable-pull-request-comment: false | |
| enable-commit-comment: false | |
| enable-commit-status: false | |
| publish-dir: 'dist' | |
| env: | |
| NETLIFY_AUTH_TOKEN: ${{ secrets.DHIS2_BOT_NETLIFY_TOKEN }} | |
| NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |