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: |
|
run: |
|
||||||
bash ./run.sh
|
bash ./run.sh
|
||||||
|
|
||||||
- name: Push changes
|
- name: 部署到Cloudflare Pages
|
||||||
uses: ad-m/github-push-action@master
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.TOKEN }}
|
# 这是文档部署到的分支名称
|
||||||
|
branch: cf-pages
|
||||||
|
folder: public
|
||||||
|
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
libraries/*.md
|
libraries/*.md
|
||||||
*.xaml
|
*.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
|
git clone https://github.com/Light-Beacon/HomepageBuilder
|
||||||
pip install ./HomepageBuilder
|
pip install ./HomepageBuilder
|
||||||
pip install -r ./requirements.txt
|
pip install -r ./requirements.txt
|
||||||
python ./script.py
|
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"
|
|
@ -65,11 +65,10 @@ for child in root:
|
|||||||
f.write(" - "+"page"+str(order)+"\n")
|
f.write(" - "+"page"+str(order)+"\n")
|
||||||
order+=1
|
order+=1
|
||||||
|
|
||||||
|
os.system("mkdir public")
|
||||||
os.system("builder build")
|
os.system("builder build --output-path public/output.xaml")
|
||||||
|
|
||||||
# os.open("output.xaml",os.O_CREAT)
|
with open("public/output.xaml","r",encoding='UTF-8') as f:
|
||||||
with open("output.xaml","r",encoding='UTF-8') as f:
|
|
||||||
Text=f.read().replace("IsSwaped=\"False\"","IsSwaped=\"True\"")
|
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)
|
f.write(Text)
|
Loading…
x
Reference in New Issue
Block a user