Skip to content

Commit

Permalink
Merge pull request #53 from npm1/master
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
npm1 authored Nov 26, 2020
2 parents a7e3c53 + ddf5890 commit 76ccc93
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 87 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
SHELL=/bin/bash

local: index.bs
bikeshed --die-on=warning spec index.bs index.html

index.html: index.bs
@ (HTTP_STATUS=$$(curl https://api.csswg.org/bikeshed/ \
--output index.html \
--write-out "%{http_code}" \
--header "Accept: text/plain, text/html" \
-F die-on=warning \
-F [email protected]) && \
[[ "$$HTTP_STATUS" -eq "200" ]]) || ( \
echo ""; cat index.html; echo ""; \
rm -f index.html; \
exit 22 \
);

remote: index.html

ci: index.bs
mkdir -p out
make remote
mv index.html out/index.html

clean:
rm index.html
9 changes: 0 additions & 9 deletions compile.sh

This file was deleted.

63 changes: 0 additions & 63 deletions deploy.sh

This file was deleted.

Binary file removed deploy_key.enc
Binary file not shown.

0 comments on commit 76ccc93

Please sign in to comment.