Fix CI build problems with actions upgrades #25
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.9" | |
- run: python -m pip install -r https://raw.githubusercontent.com/amoeba/pyLODE/master/requirements.txt | |
- run: python -m pip install git+https://github.com/amoeba/pylode.git | |
- run: python -m pip install jinja2 | |
- run: python ./.github/website/build.py | |
- name: ghpages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: ./.github/website/_build |