feat: add footer #117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: build | |
run: export NODE_OPTIONS=--openssl-legacy-provider && yarn && yarn run dist | |
- name: copy public | |
run: cp -r .vuepress/public/* dist/ | |
- name: deploy | |
run: | | |
cd dist | |
# 如果是发布到自定义域名 | |
# echo 'www.example.com' > CNAME | |
git init | |
git config user.email "[email protected]" | |
git config user.name "purocean" | |
git add -A | |
git commit -m 'deploy' | |
git push -f https://purocean:${{ secrets.GIT_ACCESSTOKEN }}@github.com/purocean/purocean.github.io.git master |