Skip to content

update

update #115

Workflow file for this run

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