Skip to content

fix love.js link in https page #11

fix love.js link in https page

fix love.js link in https page #11

Workflow file for this run

name: Hexo CI CD
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
- name: "Using Special Node Version"
uses: actions/setup-node@v2
with:
node-version: "12"
- name: Generate Hexo site ⚗️
run: |
echo "Github Action Env Checking..."
echo "Node Version: `node -v`"
echo "Coping theme config file"
CONFIG_FILE="_config.yml"
NEXT_THEME_FILE="next.theme.yml"
THEME_DIR="themes/next"
TARGET_FILE="${THEME_DIR}/${CONFIG_FILE}"
echo "Copying theme config file"
cp "${NEXT_THEME_FILE}" "${TARGET_FILE}"
head -n 1 "${TARGET_FILE}"
# Install dependencies && update env
echo "Install npm dependencies"
npm i
echo "Load hexo binary..."
export PATH="$PATH:./node_modules/.bin"
echo "Hexo version: $(hexo -v)"
echo "Gulp version: $(gulp -v)"
echo "Gulp Tasks" && gulp --tasks
# Generate site && minify site files, such as: html, js, css
hexo g --debug && gulp
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public/ # The folder the action should deploy.
CLEAN: true # Automatically remove deleted
PRESERVE: true