mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
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:
parent
584087ad46
commit
7052cea8a3
6
.github/workflows/check-link.yml
vendored
6
.github/workflows/check-link.yml
vendored
@ -1,8 +1,6 @@
|
|||||||
name: Check link
|
name: Check link
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# push:
|
|
||||||
# pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -10,9 +8,7 @@ jobs:
|
|||||||
name: check-link
|
name: check-link
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v4.1.1
|
||||||
with:
|
|
||||||
fetch-depth: 1
|
|
||||||
# search Issues :-(
|
# search Issues :-(
|
||||||
- run: |
|
- run: |
|
||||||
docker run -i --rm \
|
docker run -i --rm \
|
||||||
|
10
.github/workflows/ci.yaml
vendored
10
.github/workflows/ci.yaml
vendored
@ -1,10 +1,10 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: CI
|
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash --noprofile --norc -exo pipefail {0}
|
shell: bash --noprofile --norc -exo pipefail {0}
|
||||||
@ -14,9 +14,7 @@ jobs:
|
|||||||
name: Build
|
name: Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@v4.1.1
|
||||||
with:
|
|
||||||
fetch-depth: 2
|
|
||||||
- name: Build Gitbook
|
- name: Build Gitbook
|
||||||
uses: docker://yeasy/docker_practice
|
uses: docker://yeasy/docker_practice
|
||||||
with:
|
with:
|
||||||
@ -70,7 +68,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
export NODE_OPTIONS=--openssl-legacy-provider
|
export NODE_OPTIONS=--openssl-legacy-provider
|
||||||
sudo rm -rf _book
|
sudo rm -rf _book
|
||||||
# npm i vuepress --save-dev
|
|
||||||
npm i
|
npm i
|
||||||
|
|
||||||
git clone https://github.com/docker-practice/.vuepress .vuepress2
|
git clone https://github.com/docker-practice/.vuepress .vuepress2
|
||||||
@ -81,7 +78,6 @@ jobs:
|
|||||||
npx vuepress --version
|
npx vuepress --version
|
||||||
|
|
||||||
npm run vuepress:build
|
npm run vuepress:build
|
||||||
# echo "vuepress.docker-practice.com" > .vuepress/dist/CNAME
|
|
||||||
echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME
|
echo "vuepress.mirror.docker-practice.com" > .vuepress/dist/CNAME
|
||||||
|
|
||||||
cp -r _images .vuepress/dist
|
cp -r _images .vuepress/dist
|
||||||
|
Loading…
Reference in New Issue
Block a user