Skip to content

Commit

Permalink
fix: save result
Browse files Browse the repository at this point in the history
  • Loading branch information
1chooo committed Jan 16, 2024
1 parent 5caaca3 commit 85e45fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/fetch-gist-post.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ jobs:
- name: Check results
run: ls -al ./blog

# - name: save result
# run: mkdir -p /tmp/architecture && cp -r ./* /tmp/architecture && rm -rf ./blog/* && git fetch && git checkout gh-pages && git pull && git config user.email "autodeploy@github.com" && git config user.name "github action auto bot"
- name: save result
run: mkdir -p /tmp/architecture && cp -r ./* /tmp/architecture && rm -rf ./blog/* && git fetch && git checkout gh-pages && git pull && git config user.email "autodeploy@github.com" && git config user.name "github action auto bot"
run: mkdir -p /tmp/architecture && cp -r ./* /tmp/architecture && rm -rf ./blog/* && git fetch && git branch -a && git checkout origin/gh-pages -b gh-pages && git pull && git config user.email "autodeploy@github.com" && git config user.name "github action auto bot"

- name: deploy to github page
run: rm -rf * && cp -r /tmp/architecture/* ./ && git add . && git commit -m "release new post" && git push origin --set-upstream gh-pages

0 comments on commit 85e45fa

Please sign in to comment.