Skip to content

添加部分验证信息: #43

添加部分验证信息:

添加部分验证信息: #43

Workflow file for this run

name: CyanBlog CI
on:
- push
jobs:
buildstatic:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install & Build
run: >
npm i -D
git ls-files -z | while read -d '' path; do touch -d "$(git log -1
--format="@%ct" "$path")" "$path"; done
npm run build
- name: NPM Publish Pre Set
run: >
node ./prescripts/pkgpublish.js
- name: Bundle CNAME File
run: >
echo "blog.eurekac.cn" >> ./public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.TOKEN }}
publish_dir: ./public
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM }}
package: ./public/package.json