mirror of
https://github.com/tsxc-github/mzmcos--.git
synced 2025-09-10 07:29:17 +08:00
✨ 更改保存逻辑,使其保存到独立branch
This commit is contained in:
parent
76ff525ae4
commit
8277662f20
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
@ -31,7 +31,9 @@ jobs:
|
||||
run: |
|
||||
bash ./run.sh
|
||||
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
- name: 部署到Cloudflare Pages
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
github_token: ${{ secrets.TOKEN }}
|
||||
# 这是文档部署到的分支名称
|
||||
branch: cf-pages
|
||||
folder: public
|
||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
||||
libraries/*.md
|
||||
*.xaml
|
||||
*.xml
|
||||
*.xml
|
||||
pages/pages.yml
|
||||
public
|
165
output.xaml
165
output.xaml
File diff suppressed because one or more lines are too long
7
run.sh
7
run.sh
@ -1,9 +1,4 @@
|
||||
git clone https://github.com/Light-Beacon/HomepageBuilder
|
||||
pip install ./HomepageBuilder
|
||||
pip install -r ./requirements.txt
|
||||
python ./script.py
|
||||
|
||||
git config user.email "tsxc_personal@163.com"
|
||||
git config user.name "星澜曦光"
|
||||
git add output.xaml -f
|
||||
git commit -m "更新output.xaml"
|
||||
python ./script.py
|
@ -65,11 +65,10 @@ for child in root:
|
||||
f.write(" - "+"page"+str(order)+"\n")
|
||||
order+=1
|
||||
|
||||
|
||||
os.system("builder build")
|
||||
os.system("mkdir public")
|
||||
os.system("builder build --output-path public/output.xaml")
|
||||
|
||||
# os.open("output.xaml",os.O_CREAT)
|
||||
with open("output.xaml","r",encoding='UTF-8') as f:
|
||||
with open("public/output.xaml","r",encoding='UTF-8') as f:
|
||||
Text=f.read().replace("IsSwaped=\"False\"","IsSwaped=\"True\"")
|
||||
with open("output.xaml","w",encoding='UTF-8') as f:
|
||||
with open("public/output.xaml","w",encoding='UTF-8') as f:
|
||||
f.write(Text)
|
Loading…
x
Reference in New Issue
Block a user