Skip to content

fix code outof html #70

fix code outof html

fix code outof html #70

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@v6
with:
node-version: 24.x
- name: Cache node modules
uses: actions/cache@v3
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