-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1519 from w3c/apg-1.2-merge-latest
APG 1.2 Publication Branch: Merge latest from main branch
- Loading branch information
Showing
262 changed files
with
19,950 additions
and
12,488 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Deploy gh-pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- .github/workflows/deploy.yml | ||
- common/** | ||
- examples/** | ||
- img/** | ||
- aria-practices.html | ||
- README.md | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
path: main | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
path: deploy | ||
ref: gh-pages | ||
token: ${{ env.GH_TOKEN }} | ||
|
||
- name: Cleanup old files | ||
run: | | ||
rm -rf deploy/common/ | ||
rm -rf deploy/examples/ | ||
rm -rf deploy/img/ | ||
rm -rf deploy/index.html | ||
rm -rf deploy/README.md | ||
- name: Copy files | ||
run: | | ||
cp -R main/common deploy | ||
cp -R main/examples deploy | ||
cp -R main/img deploy | ||
cp main/README.md deploy | ||
- name: Generate new index | ||
run: | | ||
curl "https://labs.w3.org/spec-generator/?type=respec&url=https://raw.githack.com/${{ github.repository }}/${{ github.sha }}/aria-practices.html" -o deploy/index.html -f --retry 3 | ||
- name: Commit back | ||
run: | | ||
cd deploy | ||
git config user.name github-actions[bot] | ||
git config user.email github-actions[bot]@users.noreply.github.com | ||
git add --all | ||
git commit -am "Generated by ${{ github.sha }}" || true | ||
git push |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
.DS_* | ||
node_modules | ||
.vscode/* | ||
!.vscode/extensions.json |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"recommendations": [ | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.