Skip to content

Fix NVC version detection #1099

Fix NVC version detection

Fix NVC version detection #1099

Workflow file for this run

name: 'docs'
on:
push:
pull_request:
workflow_dispatch:
env:
# https://github.com/tox-dev/tox/issues/1468
PY_COLORS: 1
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install -U pip --progress-bar off
pip install -U virtualenv tox --progress-bar off
- name: Build docs
run: tox -e py311-docs -- --color
- uses: actions/upload-artifact@v3
with:
name: VUnit-site
path: .tox/py311-docs/tmp/docsbuild/
- name: Publish site to gh-pages
if: github.event_name != 'pull_request' && github.repository == 'VUnit/vunit' && github.ref_name == 'master'
env:
GH_DEPKEY: ${{ secrets.VUNIT_GITHUB_IO_DEPLOY_KEY }}
run: |
cd .tox/py311-docs/tmp/docsbuild/
touch .nojekyll
git init
git add .
git config --local user.email "push@gha"
git config --local user.name "GHA"
git commit -a -m "update ${{ github.sha }}"
git remote add origin git@github.com:VUnit/VUnit.github.io
eval `ssh-agent -t 60 -s`
echo "$GH_DEPKEY" | ssh-add -
mkdir -p ~/.ssh/
ssh-keyscan github.com >> ~/.ssh/known_hosts
git push -u origin +master
ssh-agent -k