Skip to content

Commit

Permalink
Updated TravisCI
Browse files Browse the repository at this point in the history
  • Loading branch information
himorin committed Jan 15, 2021
1 parent fd13e67 commit 294104c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 66 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: make
- name: Prepare Deploy folder
run: mkdir deploy && rsync -av --exclude=.git --exclude=.gitignore --exclude=deploy . deploy/
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: deploy # The folder the action should deploy.
13 changes: 4 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
LOCAL_BIKESHED := $(shell command -v bikeshed 2> /dev/null)

.PHONY: dirs
.PHONY: all index.html

all: dirs index.html

dirs: out

out:
mkdir -p out
all: index.html

index.html: index.bs
ifndef LOCAL_BIKESHED
curl https://api.csswg.org/bikeshed/ -F [email protected] -F output=err
curl https://api.csswg.org/bikeshed/ -F [email protected] -F force=1 > out/index.html | tee
curl https://api.csswg.org/bikeshed/ -F [email protected] -F force=1 > index.html | tee
else
bikeshed spec index.bs out/index.html
bikeshed spec index.bs index.html
endif
57 changes: 0 additions & 57 deletions deploy.sh

This file was deleted.

Binary file removed deploy_key.enc
Binary file not shown.

0 comments on commit 294104c

Please sign in to comment.