DataStructures and Algorithms visualization
https://www.wztlink1013.com/datastructures-algorithms-visualization/
name: CI for wztlink1013.github.io
on: [push, watch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up git
run: |
git config --global user.name 'wztlink1013'
git config --global user.email 'wztlink1013@163.com'
- name: deal with forder
env:
Github_Token: ${{ secrets.TOKEN_GITHUBAPI }}
run: |
git clone https://${Github_Token}@github.com/wztlink1013/datastructures-algorithms-visualization visualization
git clone https://${Github_Token}@github.com/wztlink1013/wztlink1013.github.io .github_pages
cd visualization
rm -r .git
rm -r .github
cd ..
cd .github_pages
rm -r visualization
cd ..
mv visualization/ -f .github_pages/
cd .github_pages
git status
git add .
git commit -m "add gh-pages files"
git push --force --quiet "https://${Github_Token}@github.com/wztlink1013/wztlink1013.github.io" master:master