Skip to content

Commit

Permalink
Meta: update repository files
Browse files Browse the repository at this point in the history
  • Loading branch information
foolip committed Jun 13, 2020
1 parent d51aaf2 commit 3f94207
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 31 deletions.
9 changes: 6 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ root = true
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_size = 1
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
max_line_length = 100

[Makefile]
indent_style = tab

[.travis.yml]
indent_size = 2
[*.bs]
indent_size = 1

[*.py]
indent_size = 4
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
# Note: `python` will also be this version, which various scripts depend on.
- uses: actions/setup-python@v2
with:
python-version: 3.8
# Note: `make deploy` will do a deploy dry run on PRs.
- run: make deploy
env:
SERVER: ${{ secrets.MARQUEE_SERVER }}
SERVER_PUBLIC_KEY: ${{ secrets.MARQUEE_PUBLIC_KEY }}
SERVER_DEPLOY_KEY: ${{ secrets.MARQUEE_DEPLOY_KEY }}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/quirks.spec.whatwg.org/
/deploy.sh
/deploy_key
/deploy_key.pub
/quirks.html
/review.sh
14 changes: 7 additions & 7 deletions .pr-preview.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"src_file": "quirks.bs",
"type": "bikeshed",
"params": {
"force": 1,
"md-status": "LS-PR",
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
}
"src_file": "quirks.bs",
"type": "bikeshed",
"params": {
"force": 1,
"md-status": "LS-PR",
"md-Text-Macro": "PR-NUMBER {{ pull_request.number }}"
}
}
17 changes: 0 additions & 17 deletions .travis.yml

This file was deleted.

15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,21 @@ SHELL=/bin/bash -o pipefail
.PHONY: local remote deploy review

remote: quirks.bs
curl https://api.csswg.org/bikeshed/ -f -F file=@quirks.bs > quirks.html -F md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output quirks.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F md-Text-Macro="COMMIT-SHA LOCAL COPY" \
-F file=@quirks.bs) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat quirks.html; echo ""; \
rm -f quirks.html; \
exit 22 \
);

local: quirks.bs
bikeshed spec quirks.bs quirks.html --md-Text-Macro="SNAPSHOT-LINK LOCAL COPY"
bikeshed spec quirks.bs quirks.html --md-Text-Macro="COMMIT-SHA LOCAL COPY"

deploy: quirks.bs
curl --remote-name --fail https://resources.whatwg.org/build/deploy.sh
Expand Down
Binary file removed deploy_key.enc
Binary file not shown.

0 comments on commit 3f94207

Please sign in to comment.