Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #537: CI错误,需要更新workflows YAML #538

Merged
merged 2 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .github/workflows/check-link.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
name: Check link

on:
# push:
# pull_request:
workflow_dispatch:

jobs:
check-link:
name: check-link
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/[email protected]
# search Issues :-(
- run: |
docker run -i --rm \
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

name: CI

defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
Expand All @@ -14,9 +14,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 2
- uses: actions/[email protected]
- name: Build Gitbook
uses: docker://yeasy/docker_practice
with:
Expand Down Expand Up @@ -68,8 +66,8 @@ jobs:
PCIT_USERNAME: khs1994
- name: vuepress
run: |
export NODE_OPTIONS=--openssl-legacy-provider
sudo rm -rf _book
# npm i vuepress --save-dev
npm i

git clone https://github.com/docker-practice/.vuepress .vuepress2
Expand All @@ -80,7 +78,6 @@ jobs:
npx vuepress --version

npm run vuepress:build
# echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME

cp -r _images .vuepress/dist
Expand Down