-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 移除TravisCI(收费),使用GitHub Actions
- Loading branch information
Showing
4 changed files
with
42 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
软件开发、生活分享... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters