Skip to content

Merge branch 'main' of https://github.com/HowCam/howcam.github.io #128

Merge branch 'main' of https://github.com/HowCam/howcam.github.io

Merge branch 'main' of https://github.com/HowCam/howcam.github.io #128

Workflow file for this run

name: publish site
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install mkdocs-material
pip install mkdocs-git-revision-date-localized-plugin
pip install mkdocs-git-committers-plugin-2
- name: Build site
run: mkdocs build
- name: Add CNAME file
run: echo "starship.howcam.top" > site/CNAME
- name: Deploy to GitHub Pages
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
run: mkdocs gh-deploy --force --clean