refdoc #6483
This file contains 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: CI | |
on: | |
repository_dispatch: {} | |
jobs: | |
update_site: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, 'skip-ci')" | |
steps: [ | |
{ name: 'Checkout', uses: actions/checkout@v1, with: { fetch-depth: 1 } }, | |
{ name: 'Install Python', uses: actions/setup-python@v4, with: { python-version: 3.10.5, architecture: x64 } }, | |
{ name: 'Install Java', uses: actions/setup-java@v3, with: { java-version: '17.0.5+8', distribution: 'temurin'} }, | |
{ name: 'Install Lunr', run: 'pip install --user lunr==0.5.5' }, | |
{ name: 'Install Requests', run: 'pip install --user requests' }, | |
{ name: 'Install PyYAML', run: 'pip install --user pyyaml' }, | |
{ name: 'Install Markdown', run: 'pip install --user markdown==3.4.1' }, | |
{ name: 'Install Pygments', run: 'pip install --user pygments==2.13.0' }, | |
{ name: 'Show action & event', run: 'echo "Event: ${{ github.event }} Action: ${{ github.event.action }}"' }, | |
{ if: "github.event.action == 'asset-portal'", name: 'Update assets', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} asset-portal commit' }, | |
{ if: "github.event.action == 'games-showcase'", name: 'Update games', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} games-showcase commit' }, | |
{ if: "github.event.action == 'docs'", name: 'Update docs', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} docs searchindex commit' }, | |
{ if: "github.event.action == 'refdoc'", name: 'Update refdoc', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} refdoc searchindex commit' }, | |
{ if: "github.event.action == 'examples'", name: 'Update examples', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} examples commit' }, | |
{ if: "github.event.action == 'codepad'", name: 'Update codepad', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} codepad commit' }, | |
{ if: "startsWith(github.event.action, 'extension-')", name: 'Update extension', run: 'python update.py --download --githubtoken=${{ secrets.SERVICES_GITHUB_TOKEN }} --extension ${{ github.event.action }} extensions refdoc searchindex commit' } | |
] |