Skip to content

Commit 0837560

Browse files
author
Luke Sneeringer
committed
chore: Add CI/CD.
1 parent 9730256 commit 0837560

3 files changed

Lines changed: 42 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# The AIP working group owns the content of this repository.
2+
* @aip-dev/aip

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: publish
3+
on:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
github-pages:
9+
runs-on: ubuntu-latest
10+
container: python:3.8
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install system dependencies.
14+
run: apt-get update && apt-get install -y rsync
15+
- name: Install the site generator.
16+
run: pip install -r requirements.txt
17+
- name: Build the static site.
18+
run: aip-site-gen . out
19+
- name: Publish the static site to GitHub Pages.
20+
uses: jamesives/github-pages-deploy-action@releases/v3
21+
with:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
BRANCH: gh-pages
24+
FOLDER: out

.github/workflows/test.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: test
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
container: python:3.8
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install the site-generator
14+
run: pip install -r requirements.txt
15+
- name: Build the site.
16+
run: aip-site-gen . /out

0 commit comments

Comments
 (0)