Skip to content

Commit

Permalink
refactor(workflows): 💚 Update the YAMLs for GitHub workflows
Browse files Browse the repository at this point in the history
Update the out dated action version. Remove redundant/useless lines. Some other updates.
  • Loading branch information
CybCom committed Dec 22, 2023
1 parent 584087a commit 7052cea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
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/checkout@v4.1.1
# search Issues :-(
- run: |
docker run -i --rm \
Expand Down
10 changes: 3 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/checkout@v4.1.1
- name: Build Gitbook
uses: docker://yeasy/docker_practice
with:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7052cea

Please sign in to comment.