Skip to content

《深入理解Go语言》读书笔记 - Go 语言协程调度器 GPM 模型 #312

《深入理解Go语言》读书笔记 - Go 语言协程调度器 GPM 模型

《深入理解Go语言》读书笔记 - Go 语言协程调度器 GPM 模型 #312

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout source
uses: actions/checkout@v1
with:
ref: master
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '22.20.0'
- name: Setup Hexo
env:
# HEXO_DEPLOY_PRI_XIAOXIN_WINDOW 这个就是配置hexo仓库secrets的name,一定要对应上
ACTION_DEPLOY_KEY: ${{ secrets.HEXO }}
run: |
mkdir -p ~/.ssh/
echo "$ACTION_DEPLOY_KEY"> ~/.ssh/id_rsa
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
git config --global user.email "[email protected]"
git config --global user.name "Cooooing"
npm install hexo-cli -g
npm install
- name: Deploy
run: |
hexo clean
hexo deploy