From ab12d701f90429335334e0751b8072d87e9c771e Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 14 Jun 2024 17:43:53 +0200 Subject: [PATCH] Try different approach for ED actions and lightweight checks on PRs --- .github/workflows/accname.yml | 61 ++++++++++++++++++ .../build-copy-and-publish-accname.yml | 64 ------------------- .../build-copy-and-publish-core-aam.yml | 64 ------------------- .../build-copy-and-publish-dpub-aam.yml | 64 ------------------- .../build-copy-and-publish-dpub-aria.yml | 64 ------------------- .../build-copy-and-publish-graphics-aam.yml | 64 ------------------- .../build-copy-and-publish-graphics-aria.yml | 64 ------------------- .../build-copy-and-publish-html-aam.yml | 64 ------------------- .../build-copy-and-publish-mathml-aam.yml | 64 ------------------- .github/workflows/core-aam.yml | 61 ++++++++++++++++++ .github/workflows/dpub-aam.yml | 61 ++++++++++++++++++ .github/workflows/gh-pages.yml | 25 ++++++-- .github/workflows/graphics-aam.yml | 61 ++++++++++++++++++ 13 files changed, 262 insertions(+), 519 deletions(-) create mode 100644 .github/workflows/accname.yml delete mode 100644 .github/workflows/build-copy-and-publish-accname.yml delete mode 100644 .github/workflows/build-copy-and-publish-core-aam.yml delete mode 100644 .github/workflows/build-copy-and-publish-dpub-aam.yml delete mode 100644 .github/workflows/build-copy-and-publish-dpub-aria.yml delete mode 100644 .github/workflows/build-copy-and-publish-graphics-aam.yml delete mode 100644 .github/workflows/build-copy-and-publish-graphics-aria.yml delete mode 100644 .github/workflows/build-copy-and-publish-html-aam.yml delete mode 100644 .github/workflows/build-copy-and-publish-mathml-aam.yml create mode 100644 .github/workflows/core-aam.yml create mode 100644 .github/workflows/dpub-aam.yml create mode 100644 .github/workflows/graphics-aam.yml diff --git a/.github/workflows/accname.yml b/.github/workflows/accname.yml new file mode 100644 index 000000000..11d3567ea --- /dev/null +++ b/.github/workflows/accname.yml @@ -0,0 +1,61 @@ +name: accname ED +on: + push: + branches: + - 'main' + paths: + - 'common/**' + - 'accname/**' + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch to accname repo + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{secrets.ARIA_EDITOR_DRAFTS}}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/daniel-montalvo/accname/actions/workflows/build-from-monorepo.yaml/dispatches \ + -d '{"ref":"gh-pages"}' + update-accname: + runs-on: ubuntu-latest + steps: + - name: Checkout monorepo + uses: actions/checkout@v4 + with: + ref: main + path: aria + sparse-checkout: | + accname + common + - uses: w3c/spec-prod@v2 + with: + TOOLCHAIN: respec + SOURCE: aria/accname/index.html + DESTINATION: aria/accname/index.html + ARTIFACT_NAME: accname + - name: Checkout accname repo + uses: actions/checkout@v4 + with: + repository: daniel-montalvo/accname + ref: gh-pages + path: accname + token: ${{ secrets.ARIA_EDITOR_DRAFTS }} + - uses: actions/download-artifact@v4 + with: + name: accname + path: accname/ + # - name: Copy files + # run: | + # cp -r aria/common accname + # cp -r aria/accname . + - name: Push new files to child repo + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Sync from monorepo" + git push origin gh-pages + working-directory: accname diff --git a/.github/workflows/build-copy-and-publish-accname.yml b/.github/workflows/build-copy-and-publish-accname.yml deleted file mode 100644 index fc2c7cb5d..000000000 --- a/.github/workflows/build-copy-and-publish-accname.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish accname -on: - push: - branches: [main] - paths: ['accname/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: accname/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_ACCNAME }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: WD - shortName: accname-1.2 - ARTIFACT_NAME: 'accname' - - - uses: actions/upload-artifact@v4 - with: - name: accname - path: accname.zip - - copy-to-accname-gh-pages: - name: Copy to accname repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout accname repo - uses: actions/checkout@v4 - with: - repository: w3c/accname - ref: gh-pages - path: accname - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: accname - path: accname - - - name: Commit changes - working-directory: accname - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update accname" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-core-aam.yml b/.github/workflows/build-copy-and-publish-core-aam.yml deleted file mode 100644 index 0ee6c434f..000000000 --- a/.github/workflows/build-copy-and-publish-core-aam.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish core-aam -on: - push: - branches: [main] - paths: ['core-aam/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: core-aam/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_CORE_AAM }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: core-aam-1.2 - ARTIFACT_NAME: 'core-aam' - - - uses: actions/upload-artifact@v4 - with: - name: core-aam - path: core-aam.zip - - copy-to-core-aam-gh-pages: - name: Copy to core-aam repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout core-aam repo - uses: actions/checkout@v4 - with: - repository: w3c/core-aam - ref: gh-pages - path: core-aam - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: core-aam - path: core-aam - - - name: Commit changes - working-directory: core-aam - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update core-aam" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-dpub-aam.yml b/.github/workflows/build-copy-and-publish-dpub-aam.yml deleted file mode 100644 index 3c9131099..000000000 --- a/.github/workflows/build-copy-and-publish-dpub-aam.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish dpub-aria -on: - push: - branches: [main] - paths: ['dpub-aria/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: dpub-aria/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_DPUB-AAM }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: dpub-aria-1.1 - ARTIFACT_NAME: 'dpub-aria' - - - uses: actions/upload-artifact@v4 - with: - name: dpub-aria - path: dpub-aria.zip - - copy-to-dpub-aria-gh-pages: - name: Copy to dpub-aria repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout dpub-aria repo - uses: actions/checkout@v4 - with: - repository: w3c/dpub-aria - ref: gh-pages - path: dpub-aria - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: dpub-aria - path: dpub-aria - - - name: Commit changes - working-directory: dpub-aria - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update dpub-aria" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-dpub-aria.yml b/.github/workflows/build-copy-and-publish-dpub-aria.yml deleted file mode 100644 index 95c463ebc..000000000 --- a/.github/workflows/build-copy-and-publish-dpub-aria.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish dpub-aria -on: - push: - branches: [main] - paths: ['dpub-aria/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: dpub-aria/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_DPUB-ARIA }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: dpub-aria-1.1 - ARTIFACT_NAME: 'dpub-aria' - - - uses: actions/upload-artifact@v4 - with: - name: dpub-aria - path: dpub-aria.zip - - copy-to-dpub-aria-gh-pages: - name: Copy to dpub-aria repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout dpub-aria repo - uses: actions/checkout@v4 - with: - repository: w3c/dpub-aria - ref: gh-pages - path: dpub-aria - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: dpub-aria - path: dpub-aria - - - name: Commit changes - working-directory: dpub-aria - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update dpub-aria" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-graphics-aam.yml b/.github/workflows/build-copy-and-publish-graphics-aam.yml deleted file mode 100644 index c09737b0a..000000000 --- a/.github/workflows/build-copy-and-publish-graphics-aam.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish graphics-aam -on: - push: - branches: [main] - paths: ['graphics-aam/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: graphics-aam/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_GRAPHICS-AAM }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: graphics-aam-1.1 - ARTIFACT_NAME: 'graphics-aam' - - - uses: actions/upload-artifact@v4 - with: - name: graphics-aam - path: graphics-aam.zip - - copy-to-graphics-aam-gh-pages: - name: Copy to graphics-aam repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout graphics-aam repo - uses: actions/checkout@v4 - with: - repository: w3c/graphics-aam - ref: gh-pages - path: graphics-aam - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: graphics-aam - path: graphics-aam - - - name: Commit changes - working-directory: graphics-aam - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update graphics-aam" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-graphics-aria.yml b/.github/workflows/build-copy-and-publish-graphics-aria.yml deleted file mode 100644 index 438741682..000000000 --- a/.github/workflows/build-copy-and-publish-graphics-aria.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish graphics-aria -on: - push: - branches: [main] - paths: ['graphics-aria/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: graphics-aria/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_GRAPHICS-ARIA }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: graphics-aria-1.1 - ARTIFACT_NAME: 'graphics-aria' - - - uses: actions/upload-artifact@v4 - with: - name: graphics-aria - path: graphics-aria.zip - - copy-to-graphics-aria-gh-pages: - name: Copy to graphics-aria repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout graphics-aria repo - uses: actions/checkout@v4 - with: - repository: w3c/graphics-aria - ref: gh-pages - path: graphics-aria - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: graphics-aria - path: graphics-aria - - - name: Commit changes - working-directory: graphics-aria - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update graphics-aria" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-html-aam.yml b/.github/workflows/build-copy-and-publish-html-aam.yml deleted file mode 100644 index 056709fc9..000000000 --- a/.github/workflows/build-copy-and-publish-html-aam.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish html-aam -on: - push: - branches: [main] - paths: ['html-aam/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: html-aam/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_HTML-AAM }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: WD - shortName: html-aam-1.2 - ARTIFACT_NAME: 'html-aam' - - - uses: actions/upload-artifact@v4 - with: - name: html-aam - path: html-aam.zip - - copy-to-html-aam-gh-pages: - name: Copy to html-aam repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout html-aam repo - uses: actions/checkout@v4 - with: - repository: w3c/html-aam - ref: gh-pages - path: html-aam - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: html-aam - path: html-aam - - - name: Commit changes - working-directory: html-aam - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update html-aam" - git push origin gh-pages diff --git a/.github/workflows/build-copy-and-publish-mathml-aam.yml b/.github/workflows/build-copy-and-publish-mathml-aam.yml deleted file mode 100644 index e5a0e6dab..000000000 --- a/.github/workflows/build-copy-and-publish-mathml-aam.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: Build, Copy, and Publish mathml-aam -on: - push: - branches: [main] - paths: ['mathml-aam/**', 'common/**'] - workflow_dispatch: - -jobs: - main: - name: Build Respec - runs-on: ubuntu-20.04 - steps: - - uses: actions/checkout@v4 - - uses: w3c/spec-prod@v2 - with: - SOURCE: mathml-aam/index.html - TOOLCHAIN: respec - W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_MATHML-AAM }} - W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html - GH_PAGES_BRANCH: gh-pages - VALIDATE_WEBIDL: false - VALIDATE_MARKUP: false - BUILD_FAIL_ON: nothing - W3C_BUILD_OVERRIDE: | - specStatus: CRD - shortName: mathml-aam-1.1 - ARTIFACT_NAME: 'mathml-aam' - - - uses: actions/upload-artifact@v4 - with: - name: mathml-aam - path: mathml-aam.zip - - copy-to-mathml-aam-gh-pages: - name: Copy to mathml-aam repo - runs-on: ubuntu-20.04 - needs: main - steps: - - name: Checkout mathml-aam repo - uses: actions/checkout@v4 - with: - repository: w3c/mathml-aam - ref: gh-pages - path: mathml-aam - token: ${{ secrets.GITHUB_TOKEN }} - - - name: Download artifacts - uses: actions/download-artifact@v4 - with: - name: mathml-aam - path: mathml-aam - - - name: Commit changes - working-directory: mathml-aam - env: - token: ${{ secrets.ARIA_SPECS_EDITORS_DRAFTS }} - run: | - ls -R - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "GitHub Actions" - git status - git add . - git commit -m "Update mathml-aam" - git push origin gh-pages diff --git a/.github/workflows/core-aam.yml b/.github/workflows/core-aam.yml new file mode 100644 index 000000000..8d02c41b6 --- /dev/null +++ b/.github/workflows/core-aam.yml @@ -0,0 +1,61 @@ +name: core-aam ED +on: + push: + branches: + - 'main' + paths: + - 'common/**' + - 'core-aam/**' + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch to core-aam repo + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{secrets.ARIA_EDITOR_DRAFTS}}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/daniel-montalvo/core-aam/actions/workflows/build-from-monorepo.yaml/dispatches \ + -d '{"ref":"gh-pages"}' + update-core-aam: + runs-on: ubuntu-latest + steps: + - name: Checkout monorepo + uses: actions/checkout@v4 + with: + ref: main + path: aria + sparse-checkout: | + core-aam + common + - uses: w3c/spec-prod@v2 + with: + TOOLCHAIN: respec + SOURCE: aria/core-aam/index.html + DESTINATION: aria/core-aam/index.html + ARTIFACT_NAME: core-aam + - name: Checkout core-aam repo + uses: actions/checkout@v4 + with: + repository: daniel-montalvo/core-aam + ref: gh-pages + path: core-aam + token: ${{ secrets.ARIA_EDITOR_ }} + - uses: actions/download-artifact@v4 + with: + name: core-aam + path: core-aam/ + # - name: Copy files + # run: | + # cp -r aria/common core-aam + # cp -r aria/core-aam . + - name: Push new files to child repo + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Sync from monorepo" + git push origin gh-pages + working-directory: core-aam diff --git a/.github/workflows/dpub-aam.yml b/.github/workflows/dpub-aam.yml new file mode 100644 index 000000000..2d9c119e0 --- /dev/null +++ b/.github/workflows/dpub-aam.yml @@ -0,0 +1,61 @@ +name: dpub-aam ED +on: + push: + branches: + - 'main' + paths: + - 'common/**' + - 'dpub-aam/**' + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch to dpub-aam repo + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{secrets.ARIA_EDITOR_DRAFTS}}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/daniel-montalvo/dpub-aam/actions/workflows/build-from-monorepo.yaml/dispatches \ + -d '{"ref":"gh-pages"}' + update-dpub-aam: + runs-on: ubuntu-latest + steps: + - name: Checkout monorepo + uses: actions/checkout@v4 + with: + ref: main + path: aria + sparse-checkout: | + dpub-aam + common + - uses: w3c/spec-prod@v2 + with: + TOOLCHAIN: respec + SOURCE: aria/dpub-aam/index.html + DESTINATION: aria/dpub-aam/index.html + ARTIFACT_NAME: dpub-aam + - name: Checkout dpub-aam repo + uses: actions/checkout@v4 + with: + repository: daniel-montalvo/dpub-aam + ref: gh-pages + path: dpub-aam + token: ${{ secrets.ARIA_EDITOR_ }} + - uses: actions/download-artifact@v4 + with: + name: dpub-aam + path: dpub-aam/ + # - name: Copy files + # run: | + # cp -r aria/common dpub-aam + # cp -r aria/dpub-aam . + - name: Push new files to child repo + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Sync from monorepo" + git push origin gh-pages + working-directory: dpub-aam diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5e5b88dfb..350f39937 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,23 +1,34 @@ -name: Deploy to gh-pages on push to main, check on pull requests +name: Lightweight check on pull requests # See https://github.com/w3c/spec-prod/blob/main/docs/examples.md#deploy-to-github-pages on: pull_request: {} - push: - branches: [main] jobs: main: name: Build, Validate and Deploy runs-on: ubuntu-20.04 + permissions: + contents: write + strategy: + max-parallel: 1 + matrix: + include: + - source: + - index.html + - core-aam/index.html + - accname/index.html + - dpub-aam/index.html + - dpub-aria/index.html + - graphics-aam/index.html + - graphics-aria/index.html + - svg-aam/index.html steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: w3c/spec-prod@v2 with: + SOURCE: ${{ matrix.source }} TOOLCHAIN: respec - GH_PAGES_BUILD_OVERRIDE: | - lint: false BUILD_FAIL_ON: nothing - GH_PAGES_BRANCH: gh-pages VALIDATE_WEBIDL: false VALIDATE_MARKUP: false diff --git a/.github/workflows/graphics-aam.yml b/.github/workflows/graphics-aam.yml new file mode 100644 index 000000000..122ee153c --- /dev/null +++ b/.github/workflows/graphics-aam.yml @@ -0,0 +1,61 @@ +name: graphics-aam ED +on: + push: + branches: + - 'main' + paths: + - 'common/**' + - 'graphics-aam/**' + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - name: Dispatch to graphics-aam repo + run: | + curl -L -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer ${{secrets.ARIA_EDITOR_DRAFTS}}" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/daniel-montalvo/graphics-aam/actions/workflows/build-from-monorepo.yaml/dispatches \ + -d '{"ref":"gh-pages"}' + update-graphics-aam: + runs-on: ubuntu-latest + steps: + - name: Checkout monorepo + uses: actions/checkout@v4 + with: + ref: main + path: aria + sparse-checkout: | + graphics-aam + common + - uses: w3c/spec-prod@v2 + with: + TOOLCHAIN: respec + SOURCE: aria/graphics-aam/index.html + DESTINATION: aria/graphics-aam/index.html + ARTIFACT_NAME: graphics-aam + - name: Checkout graphics-aam repo + uses: actions/checkout@v4 + with: + repository: daniel-montalvo/graphics-aam + ref: gh-pages + path: graphics-aam + token: ${{ secrets.ARIA_EDITOR_ }} + - uses: actions/download-artifact@v4 + with: + name: graphics-aam + path: graphics-aam/ + # - name: Copy files + # run: | + # cp -r aria/common graphics-aam + # cp -r aria/graphics-aam . + - name: Push new files to child repo + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "Sync from monorepo" + git push origin gh-pages + working-directory: graphics-aam