Skip to content

修改npm证书过期â #12

修改npm证书过期â

修改npm证书过期â #12

Workflow file for this run

name: Deploy Hexo to GitHub Pages
on:
push:
branches:
- gh-pages
env:
GIT_USER: fengjiansu
GIT_EMAIL: [email protected]
DEPLOY_REPO: fengjiansu/fengjiansu.github.io
DEPLOY_BRANCH: gh-pages
jobs:
build:
name: Build on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node_version: [v16]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout deploy repo
uses: actions/checkout@v4
with:
repository: ${{ env.DEPLOY_REPO }}
ref: ${{ env.DEPLOY_BRANCH }}
path: .deploy_git
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node_version }}
- name: Configuration environment
env:
HEXO_DEPLOY_PRI: ${{secrets.HEXO_DEPLOY_PRI}}
run: |
mkdir -p ~/.ssh
echo "$HEXO_DEPLOY_PRI" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.name $GIT_USER
git config --global user.email $GIT_EMAIL
- name: Install Dependencies
run: |
npm set strict-ssl false
npm install
- name: Deploy hexo
run: |
npm run deploy