github.com/kubeshop/testkube@v1.17.23/.github/workflows/docusaurus.yml (about) 1 name: Deploy to GitHub Pages 2 3 concurrency: 4 group: "mkdocs" 5 cancel-in-progress: true 6 7 on: 8 push: 9 branches: 10 - develop 11 paths: 12 - "docs/**" 13 14 defaults: 15 run: 16 working-directory: docs 17 18 jobs: 19 deploy: 20 name: Deploy to GitHub Pages 21 runs-on: ubuntu-latest 22 steps: 23 - uses: actions/checkout@v2 24 - uses: actions/setup-node@v3 25 with: 26 node-version: 16 27 28 - name: Install dependencies 29 run: npm ci 30 - name: Build website 31 run: npm run build 32 33 # Popular action to deploy to GitHub Pages: 34 # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus 35 - name: Deploy to GitHub Pages 36 uses: peaceiris/actions-gh-pages@v3 37 with: 38 github_token: ${{ secrets.CI_BOT_TOKEN }} 39 # Build output to publish to the `gh-pages` branch: 40 publish_dir: ./docs/build 41 # The following lines assign commit authorship to the official 42 # GH-Actions bot for deploys to `gh-pages` branch: 43 # https://github.com/actions/checkout/issues/13#issuecomment-724415212 44 # The GH actions bot is used by default if you didn't specify the two fields. 45 # You can swap them out with your own user credentials. 46 user_name: github-actions[bot] 47 user_email: 41898282+github-actions[bot]@users.noreply.github.com