Skip to content

Meta: move to GitHub Actions #992

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm install
- name: Build
run: make ci
- name: Deploy
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/out/
index.ids
deploy_key
index.html
/node_modules/
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

22 changes: 12 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
SHELL=/bin/bash
SHELL=/bin/bash -o pipefail
.PHONY: ci clean

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

all : index.html

index.html : index.bs
index.html: index.bs
ifdef bs_installed
bikeshed spec --die-on=warning index.bs
else
ifndef TRAVIS
ifndef CI
@echo Can\'t find a local version of Bikeshed. To install it, visit:
@echo
@echo https://tabatkins.github.io/bikeshed/#installing
Expand All @@ -34,7 +33,7 @@ endif
endif
ifdef node_installed
node ./check-grammar.js index.html
else ifdef TRAVIS
else ifdef CI
exit 1
else
@echo You need node for grammer checking.
Expand All @@ -44,7 +43,7 @@ ifdef pp_webidl_installed
else ifdef npm_installed
npm install
npm run pp-webidl -- --input index.html
else ifdef TRAVIS
else ifdef CI
exit 1
else
@echo You need node.js and npm to apply post-processing. To install it, visit:
Expand All @@ -54,7 +53,10 @@ else
@echo Until then, post-processing will be done dynamically, in JS, on page load.
endif

clean :
rm -f index.html
ci:
mkdir -p out
make index.html
mv index.html out/index.html

.PHONY : all clean
clean:
rm -f index.html
65 changes: 0 additions & 65 deletions deploy.sh

This file was deleted.

Binary file removed deploy_key.enc
Binary file not shown.