fix CI error

This commit is contained in:
blueloveTH 2024-01-20 23:06:09 +08:00
parent 176c829fc1
commit 0895145529
3 changed files with 13 additions and 0 deletions

View File

@ -3,6 +3,8 @@ name: website
on: on:
push: push:
branches: [ main ] branches: [ main ]
pull_request:
branches: [ main ]
jobs: jobs:
deploy: deploy:
@ -33,3 +35,4 @@ jobs:
build_dir: docs/.retype build_dir: docs/.retype
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/main'

View File

@ -1,3 +1,8 @@
try:
import os
except ImportError:
exit(0)
import sys import sys
is_pkpy = not hasattr(sys, 'getrefcount') is_pkpy = not hasattr(sys, 'getrefcount')

View File

@ -1,3 +1,8 @@
try:
import os
except ImportError:
exit(0)
import json import json
_2489KB = 'WorldMap_GridVania_layout.ldtk' _2489KB = 'WorldMap_GridVania_layout.ldtk'