refactor(workflows): 💚 Update the YAMLs for GitHub workflows

Update the out dated action version. Remove redundant/useless lines. Some other updates.
This commit is contained in:
CybCom 2023-12-23 01:01:32 +08:00
parent 584087ad46
commit 7052cea8a3
No known key found for this signature in database
2 changed files with 4 additions and 12 deletions

View File

@ -1,8 +1,6 @@
name: Check link
on:
# push:
# pull_request:
workflow_dispatch:
jobs:
@ -10,9 +8,7 @@ jobs:
name: check-link
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 1
- uses: actions/checkout@v4.1.1
# search Issues :-(
- run: |
docker run -i --rm \

View File

@ -1,10 +1,10 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
name: CI
defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}
@ -14,9 +14,7 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 2
- uses: actions/checkout@v4.1.1
- name: Build Gitbook
uses: docker://yeasy/docker_practice
with:
@ -70,7 +68,6 @@ jobs:
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
@ -81,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