|
| 1 | +name: Build, Copy, and Publish graphics-aria |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: [main] |
| 5 | + paths: ['graphics-aria/**', 'common/**'] |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + main: |
| 10 | + name: Build Respec |
| 11 | + runs-on: ubuntu-20.04 |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - uses: w3c/spec-prod@v2 |
| 15 | + with: |
| 16 | + SOURCE: graphics-aria/index.html |
| 17 | + TOOLCHAIN: respec |
| 18 | + W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_GRAPHICS-ARIA }} |
| 19 | + W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html |
| 20 | + GH_PAGES_BRANCH: gh-pages |
| 21 | + VALIDATE_WEBIDL: false |
| 22 | + VALIDATE_MARKUP: false |
| 23 | + BUILD_FAIL_ON: nothing |
| 24 | + W3C_BUILD_OVERRIDE: | |
| 25 | + specStatus: CRD |
| 26 | + shortName: graphics-aria-1.1 |
| 27 | + ARTIFACT_NAME: 'graphics-aria' |
| 28 | + |
| 29 | + - uses: actions/upload-artifact@v4 |
| 30 | + with: |
| 31 | + name: graphics-aria |
| 32 | + path: graphics-aria.zip |
| 33 | + |
| 34 | + copy-to-graphics-aria-gh-pages: |
| 35 | + name: Copy to graphics-aria repo |
| 36 | + runs-on: ubuntu-20.04 |
| 37 | + needs: main |
| 38 | + steps: |
| 39 | + - name: Checkout graphics-aria repo |
| 40 | + uses: actions/checkout@v4 |
| 41 | + with: |
| 42 | + repository: w3c/graphics-aria |
| 43 | + ref: gh-pages |
| 44 | + path: graphics-aria |
| 45 | + token: ${{ secrets.GITHUB_TOKEN }} |
| 46 | + |
| 47 | + - name: Download artifacts |
| 48 | + uses: actions/download-artifact@v4 |
| 49 | + with: |
| 50 | + name: graphics-aria |
| 51 | + path: graphics-aria |
| 52 | + |
| 53 | + - name: Commit changes |
| 54 | + working-directory: graphics-aria |
| 55 | + env: |
| 56 | + token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} |
| 57 | + run: | |
| 58 | + ls -R |
| 59 | + git config --global user.email "github-actions[bot]@users.noreply.github.com" |
| 60 | + git config --global user.name "GitHub Actions" |
| 61 | + git status |
| 62 | + git add . |
| 63 | + git commit -m "Update graphics-aria" |
| 64 | + git push origin gh-pages |
0 commit comments