Fork of https://github.com/oxigraph/oxigraph.git for the purpose of NextGraph project
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.2 KiB
69 lines
2.2 KiB
3 years ago
|
name: Nightly artifacts
|
||
4 years ago
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
|
||
|
jobs:
|
||
|
python:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
3 years ago
|
with:
|
||
|
submodules: true
|
||
4 years ago
|
- run: rustup update
|
||
|
- uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: 3.8
|
||
|
- run: python -m venv python/venv
|
||
3 years ago
|
- run: source python/venv/bin/activate && pip install --upgrade 'maturin~=0.12' sphinx
|
||
4 years ago
|
- run: source venv/bin/activate && maturin develop
|
||
|
working-directory: ./python
|
||
|
- run: source ../venv/bin/activate && sphinx-build -M doctest . build
|
||
|
working-directory: ./python/docs
|
||
|
- run: source ../venv/bin/activate && sphinx-build -M html . build
|
||
|
working-directory: ./python/docs
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
repository: oxigraph/oxigraph.github.io
|
||
|
path: website
|
||
4 years ago
|
token: ${{ secrets.FULL_ACCESS_TOKEN }}
|
||
|
- run: rm -rf ./website/pyoxigraph/latest && mkdir -p ./website/pyoxigraph/latest && cp -r ./python/docs/build/html/* ./website/pyoxigraph/latest/
|
||
4 years ago
|
- run: |
|
||
|
git config user.name github-actions
|
||
|
git config user.email github-actions@github.com
|
||
|
git add .
|
||
|
git diff-index --quiet HEAD || git commit -m "Updates pyoxigraph documentation"
|
||
|
git push
|
||
|
working-directory: ./website
|
||
3 years ago
|
|
||
3 years ago
|
docker:
|
||
3 years ago
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
with:
|
||
|
submodules: 'recursive'
|
||
3 years ago
|
- uses: docker/setup-buildx-action@v1
|
||
3 years ago
|
- name: Login to GitHub Container Registry
|
||
|
uses: docker/login-action@v1
|
||
|
with:
|
||
|
registry: ghcr.io
|
||
|
username: ${{github.actor}}
|
||
|
password: ${{secrets.GITHUB_TOKEN}}
|
||
3 years ago
|
- uses: docker/metadata-action@v3
|
||
|
id: docker_meta
|
||
|
with:
|
||
3 years ago
|
images: ghcr.io/${{ github.repository }}
|
||
3 years ago
|
tags: nightly
|
||
3 years ago
|
- uses: docker/build-push-action@v2
|
||
3 years ago
|
with:
|
||
3 years ago
|
context: .
|
||
|
file: server/Dockerfile
|
||
|
pull: true
|
||
3 years ago
|
push: true
|
||
3 years ago
|
tags: ${{ steps.docker_meta.outputs.tags }}
|
||
|
labels: ${{ steps.docker_meta.outputs.labels }}
|
||
3 years ago
|
cache-from: type=gha
|
||
|
cache-to: type=gha,mode=max
|