Skip to content

ci: list files

ci: list files #4

Workflow file for this run

name: Build Docs
on:
push:
branches: [ master ]
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nikeee/docfx-action@v1.0.0
name: Build Documentation
with:
args: docfx.json
- uses: actions/upload-artifact@v4
with:
name: docs
path: _site
publish-docs:
needs: build-docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: 'gh-pages'
- name: Delete old docs
run: rm -rf *
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: docs
- name: Unpack new docs
run: ls -a
- name: Commit and push
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
if git diff --quiet --cached; then
echo 'No changes to commit'
else
git commit -m "Update docs"
git push
fi