Skip to content

Create CNAME

Create CNAME #2

Workflow file for this run

name: deploy
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- run: |
uv sync
uv run mkdocs build
mkdir sites
mv site sites/tuic
- name: Deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd sites
echo "docs.ihsin.dev" > CNAME
git init
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git commit -m "Deploy to GitHub Pages"
gh auth setup-git
git push --force "https://github.com/${{ github.repository }}.git" HEAD:gh-pages