Skip to content

Commit d04c4f9

Browse files
authored
Meta: move to GitHub Actions
1 parent d6e71e5 commit d04c4f9

File tree

6 files changed

+38
-90
lines changed

6 files changed

+38
-90
lines changed

.github/workflows/build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: 16
18+
- run: npm install
19+
- name: Build
20+
run: make ci
21+
- name: Deploy
22+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
23+
uses: peaceiris/actions-gh-pages@v3
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: ./out

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/out/
22
index.ids
3-
deploy_key
43
index.html
54
/node_modules/

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Makefile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
SHELL=/bin/bash
1+
SHELL=/bin/bash -o pipefail
2+
.PHONY: ci clean
23

34
bs_installed := $(shell command -v bikeshed 2> /dev/null)
45
node_installed := $(shell command -v node 2> /dev/null)
56
npm_installed := $(shell command -v npm 2> /dev/null)
67
pp_webidl_installed := $(shell npm ls webidl-grammar-post-processor --parseable --depth=0 2> /dev/null)
78

8-
all : index.html
9-
10-
index.html : index.bs
9+
index.html: index.bs
1110
ifdef bs_installed
1211
bikeshed spec --die-on=warning index.bs
1312
else
14-
ifndef TRAVIS
13+
ifndef CI
1514
@echo Can\'t find a local version of Bikeshed. To install it, visit:
1615
@echo
1716
@echo https://tabatkins.github.io/bikeshed/#installing
@@ -34,7 +33,7 @@ endif
3433
endif
3534
ifdef node_installed
3635
node ./check-grammar.js index.html
37-
else ifdef TRAVIS
36+
else ifdef CI
3837
exit 1
3938
else
4039
@echo You need node for grammer checking.
@@ -44,7 +43,7 @@ ifdef pp_webidl_installed
4443
else ifdef npm_installed
4544
npm install
4645
npm run pp-webidl -- --input index.html
47-
else ifdef TRAVIS
46+
else ifdef CI
4847
exit 1
4948
else
5049
@echo You need node.js and npm to apply post-processing. To install it, visit:
@@ -54,7 +53,10 @@ else
5453
@echo Until then, post-processing will be done dynamically, in JS, on page load.
5554
endif
5655

57-
clean :
58-
rm -f index.html
56+
ci:
57+
mkdir -p out
58+
make index.html
59+
mv index.html out/index.html
5960

60-
.PHONY : all clean
61+
clean:
62+
rm -f index.html

deploy.sh

Lines changed: 0 additions & 65 deletions
This file was deleted.

deploy_key.enc

-3.17 KB
Binary file not shown.

0 commit comments

Comments
 (0)