|
| 1 | +name: Update Documentation |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + inputs: |
| 6 | + tag: |
| 7 | + description: Release tag (e.g. selenium-4.21.0) |
| 8 | + required: true |
| 9 | + type: string |
| 10 | + |
| 11 | +env: |
| 12 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 13 | + |
| 14 | +jobs: |
| 15 | + java-docs: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + - name: Checkout the tag |
| 19 | + uses: actions/checkout@v4 |
| 20 | + with: |
| 21 | + ref: ${{ inputs.tag }} |
| 22 | + - name: Setup Java |
| 23 | + uses: actions/setup-java@v3 |
| 24 | + with: |
| 25 | + java-version: 17 |
| 26 | + distribution: 'temurin' |
| 27 | + - name: Update Documentation |
| 28 | + run: ./go java:docs[true] |
| 29 | + |
| 30 | + ruby-docs: |
| 31 | + runs-on: ubuntu-latest |
| 32 | + steps: |
| 33 | + - name: Checkout the tag |
| 34 | + uses: actions/checkout@v4 |
| 35 | + with: |
| 36 | + ref: ${{ inputs.tag }} |
| 37 | + - name: Setup Java |
| 38 | + uses: actions/setup-java@v3 |
| 39 | + with: |
| 40 | + java-version: 17 |
| 41 | + distribution: 'temurin' |
| 42 | + - name: Update Documentation |
| 43 | + run: ./go ruby:docs[true] |
| 44 | + |
| 45 | + python-docs: |
| 46 | + runs-on: ubuntu-latest |
| 47 | + steps: |
| 48 | + - name: Checkout the tag |
| 49 | + uses: actions/checkout@v4 |
| 50 | + with: |
| 51 | + ref: ${{ inputs.tag }} |
| 52 | + - name: Set up Python 3.8 |
| 53 | + uses: actions/setup-python@v4 |
| 54 | + with: |
| 55 | + python-version: 3.8 |
| 56 | + - name: Update Documentation |
| 57 | + run: ./go py:docs[true] |
| 58 | + |
| 59 | + dotnet-docs: |
| 60 | + runs-on: ubuntu-latest |
| 61 | + steps: |
| 62 | + - name: Checkout the tag |
| 63 | + uses: actions/checkout@v4 |
| 64 | + with: |
| 65 | + ref: ${{ inputs.tag }} |
| 66 | + - name: Install specific version of DocFX tool |
| 67 | + # Pinning to 2.75.3 to avoid breaking changes in newer versions |
| 68 | + # See https://github.com/dotnet/docfx/issues/9855 |
| 69 | + run: dotnet tool install --global --version 2.75.3 docfx |
| 70 | + - name: Update Documentation |
| 71 | + run: ./go dotnet:docs[true] |
| 72 | + |
| 73 | + node-docs: |
| 74 | + runs-on: ubuntu-latest |
| 75 | + steps: |
| 76 | + - name: Checkout the tag |
| 77 | + uses: actions/checkout@v4 |
| 78 | + with: |
| 79 | + ref: ${{ inputs.tag }} |
| 80 | + - name: Install npm dependencies |
| 81 | + run: | |
| 82 | + npm install |
| 83 | + npm install --prefix javascript/node/selenium-webdriver |
| 84 | + - name: Update Documentation |
| 85 | + run: ./go node:docs[true] |
0 commit comments