-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (35 loc) · 975 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
- develop
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '11'
- run: curl -O https://archive.apache.org/dist/jena/binaries/apache-jena-4.2.0.tar.gz
- run: tar xzf apache-jena-4.2.0.tar.gz
- run: sh ./.github/validate.sh
website:
needs: validate
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: 'pip'
- run: python -m pip install -r ./.github/website/requirements.txt
- run: python ./.github/website/build.py
- name: ghpages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: ./.github/website/_build