Merge pull request #2308 from w3c/smockle/map-class-and-id #12
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: html-aam ED | |
on: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'common/**' | |
- 'html-aam/**' | |
workflow_dispatch: | |
jobs: | |
dispatch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dispatch to html-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/w3c/html-aam/actions/workflows/build-from-monorepo.yaml/dispatches \ | |
-d '{"ref":"gh-pages"}' | |
update-html-aam: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout monorepo | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
path: aria | |
sparse-checkout: | | |
html-aam | |
common | |
- name: Copy common | |
run: | | |
mkdir aria/html-aam/common | |
cp -r aria/common/** aria/html-aam/common/ | |
sed -i 's|\.\./common|common|g' aria/html-aam/index.html | |
- uses: w3c/spec-prod@v2 | |
with: | |
TOOLCHAIN: respec | |
SOURCE: aria/html-aam/index.html | |
DESTINATION: aria/html-aam/index.html | |
W3C_ECHIDNA_TOKEN: ${{ secrets.ECHIDNA_TOKEN_HTML_AAM }} | |
W3C_WG_DECISION_URL: https://lists.w3.org/Archives/Public/public-aria-admin/2018Sep/0011.html | |
# W3C_NOTIFICATIONS_CC: "${{ secrets.CC }}" | |
W3C_BUILD_OVERRIDE: | | |
specStatus: WD | |
ARTIFACT_NAME: html-aam | |
- name: Checkout html-aam repo | |
uses: actions/checkout@v4 | |
with: | |
repository: w3c/html-aam | |
ref: gh-pages | |
path: html-aam | |
token: ${{ secrets.ARIA_EDITOR_DRAFTS }} | |
- uses: actions/download-artifact@v4 | |
with: | |
name: html-aam | |
- name: Copy files | |
run: | | |
cp -r aria.gh/aria/html-aam/** html-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 "ED update" | |
git push origin gh-pages | |
working-directory: html-aam |