init CTFd source
Some checks are pending
Linting / Linting (3.11) (push) Waiting to run
Mirror core-theme / mirror (push) Waiting to run

This commit is contained in:
gkr
2025-12-25 09:39:21 +08:00
commit 2e06f92c64
1047 changed files with 150349 additions and 0 deletions

30
.github/workflows/mirror-core-theme.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Mirror core-theme
on:
push:
branches:
- main
workflow_dispatch:
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # need full history for subtree
- name: Setup SSH for deploy key
run: |
mkdir -p ~/.ssh
echo "${{ secrets.CORE_THEME_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan github.com >> ~/.ssh/known_hosts
- name: Setup git identity
run: |
git config user.name "github-actions[bot]"
git config user.email "username@users.noreply.github.com"
- name: Push subtree
run: |
git subtree push --prefix="CTFd/themes/core" "git@github.com:CTFd/core-theme.git" main