Skip to content

Commit

Permalink
Update deploy.yml (#2288)
Browse files Browse the repository at this point in the history
* Update deploy.yml

* Update deploy.yml
  • Loading branch information
cooper-lzy authored Oct 11, 2023
1 parent 8d2a856 commit 84d2f8e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,23 @@ jobs:
# mike delete 3.5.0 -p
git fetch origin gh-pages --depth=1 # fix mike's CI update
mike deploy 3.5.0-sc -p --rebase
# mike list
mike list
- name: show git branch
run: |
git branch
git checkout .
git checkout gh-pages
- name: Modify versions.json
run: |
import yaml, json
new_content = {"version": "3.5.0-sc", "title": "3.5.0-sc", "aliases": []}
with open('versions.json', 'r') as f:
data = json.load(f)
if new_content in data:
data.remove(new_content
with open('versions.json', 'w') as f:
json.dump(data, f)
shell: python

# not public this branch; but push to web service
# - name: Deploy
Expand Down

0 comments on commit 84d2f8e

Please sign in to comment.