Skip to content

Commit

Permalink
feat: 移除TravisCI(收费),使用GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceZhu committed Jun 8, 2023
1 parent de7b020 commit 5e92a49
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 35 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: gh-pages

on:
push:
branches:
- hexo # default branch

jobs:
pages:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Cache NPM dependencies
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# My blog
# LanceZhu's blog

[![Build Status](https://travis-ci.com/LanceZhu/lancezhu.github.io.svg?branch=hexo)](https://travis-ci.com/LanceZhu/lancezhu.github.io)[![Depfu](https://badges.depfu.com/badges/b40264eef93bfb506170276e6220ee57/overview.svg)](https://depfu.com/github/LanceZhu/lancezhu.github.io?project_id=7465)
[hexo.f00bar.top](hexo.f00bar.top)

[Another site](https://f00bar.cn)
软件开发、生活分享...
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lancezhu's blog",
"version": "1.0.0",
"name": "lancezhu_blog",
"version": "2.0.0",
"private": true,
"author": "Lance Zhu",
"repository": {
Expand All @@ -11,8 +11,9 @@
"version": "4.2.1"
},
"scripts": {
"dev": "hexo s",
"gen": "hexo g"
"serve": "hexo serve",
"build": "hexo clean && hexo generate",
"delopy": "hexo clean && hexo deploy"
},
"dependencies": {
"hexo": "^4.2.0",
Expand Down

0 comments on commit 5e92a49

Please sign in to comment.