Skip to content

advanced/resources: Add #vm-interconnect #258

advanced/resources: Add #vm-interconnect

advanced/resources: Add #vm-interconnect #258

Workflow file for this run

name: build
on:
push:
branches: [master]
workflow_dispatch: {}
repository_dispatch: {}
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3
- name: Install dependencies
run: |
pip3 install -r requirements.txt
- name: Fetch announcements
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python3 scripts/announcements.py
- name: Build docs
run: |
mkdocs -v build
: > site/.nojekyll
- name: Deploy to GitHub Pages
run: |
CINFO="$(git log -1 --pretty="%an: [%h] %s")"
git clone --depth=1 --branch=gh-pages --single-branch --no-checkout \
"https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git" test
mv test/.git site/.git && rmdir test/
pushd site/ &>/dev/null
git add -A
git -c user.name=GitHub -c [email protected] commit \
-m "Auto deploy from GitHub Actions build ${GITHUB_RUN_NUMBER}" \
-m "$CINFO"
git push
popd &>/dev/null