-
Notifications
You must be signed in to change notification settings - Fork 125
98 lines (92 loc) · 3.05 KB
/
editors-draft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
name: Deploy
on:
pull_request: {}
push:
branches:
- monorepo_history--accname
paths:
- index.html
- /accname/**
- /core-aam/**
- /dpub-aam/**
- /dpub-aria/**
- /graphics-aam/**
- /graphics-aria/**
- /html-aam/**
- /html-aria/**
- /svg-aam/**
- /mathml-aam/**
- /mathml-aria/**
jobs:
publish-editors-draft:
runs-on: ubuntu-latest
if: github.repository == 'daniel-montalvo/aria'
strategy:
fail-fast: false
matrix:
include:
- repo: daniel-montalvo/accname
branch: gh-pages
sourcepath: /accname/
- repo: daniel-montalvo/core-aam
branch: gh-pages
sourcepath: /core-aam/
- repo: daniel-montalvo/dpub-aam
branch: gh-pages
sourcepath: /dpub-aam/
- repo: daniel-montalvo/dpub-aria
branch: gh-pages
sourcepath: /dpub-aria/
- repo: daniel-montalvo/graphics-aam
branch: gh-pages
sourcepath: /graphics-aam/
- repo: daniel-montalvo/graphics-aria
branch: gh-pages
sourcepath: /graphics-aria/
- repo: daniel-montalvo/math-aria
branch: gh-pages
sourcepath: /math-aria/
- repo: daniel-montalvo/mathml-aam
branch: gh-pages
sourcepath: /mathml-aam/
- repo: daniel-montalvo/svg-aam
branch: gh-pages
sourcepath: /svg-aam/
- repo: daniel-montalvo/html-aam
branch: aria-common-sync
sourcepath: /html-aam/
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
repository: ${{ matrix.repo }}
path: ${{ matrix.repo }}
ref: ${{ matrix.branch }}
token: ${{ secrets.ARIA_COMMON }}
- name: Cleanup old files
run: |
rm -rf ${{ matrix.repo }}/common/
rm ${{ matrix.repo }}/index.html
- name: Build respec
run: |
npx respec --src ./${{ matrix.repo.sourcepath }}/index.html --out ${{ matrix.repo }}/index.html
- name: Copy files
run: |
mkdir ${{ matrix.repo }}/common
cp -R README.md ${{ matrix.repo }}/common
cp -R acknowledgements.html ${{ matrix.repo }}/common
cp -R biblio.js ${{ matrix.repo }}/common
cp -R terms.html ${{ matrix.repo }}/common
cp -R acknowledgements ${{ matrix.repo }}/common
cp -R css ${{ matrix.repo }}/common
cp -R img ${{ matrix.repo }}/common
cp -R script ${{ matrix.repo }}/common
cp -R utility ${{ matrix.repo }}/common
- name: Commit back
run: |
cd ${{ matrix.repo }}
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add --all
git commit -m "chore: sync from w3c/aria-common" -m "Generated by https://github.com/w3c/aria-common/commit/${{ github.sha }}" || true
git push