-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (48 loc) · 1.46 KB
/
compile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Vision Builder
# Reference documentation: https://docs.github.com/en/actions/reference
on: [push, pull_request]
jobs:
deploy:
runs-on: ubuntu-22.04
name: Build and deploy to gh-pages
if: ${{ github.repository == 'w3c/AB-public' && github.event_name == 'push' }}
env:
GITHUB_TOKEN: ${{ secrets.W3CGRUNTBOT_TOKEN }}
GH_BRANCH: ${{ github.head_ref }}
GH_EVENT_NUMBER: ${{ github.event.number }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
architecture: x64
- name: Install bikeshed
run: |
pip install bikeshed
bikeshed update
echo Bikeshed is ready
- name: invoke deploy.sh
run: ./deploy.sh
shell: bash
build:
runs-on: ubuntu-22.04
name: Check that the Vision builds cleanly
if: ${{ github.repository != 'w3c/AB-public' || github.event_name == 'pull_request' }}
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Setup python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
architecture: x64
- name: Install bikeshed
run: |
pip install bikeshed
bikeshed update
echo Bikeshed is ready
- name: invoke compile.sh
run: ./compile.sh
shell: bash