Skip to content

Commit 6b2b5c4

Browse files
committed
fix
1 parent 2a72f4c commit 6b2b5c4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1717
jobs:
1818
# This workflow contains a single job called "build"
19-
build:
19+
start:
2020
# The type of runner that the job will run on
2121
runs-on: ubuntu-latest
2222

@@ -47,13 +47,21 @@ jobs:
4747
# unzip cavif-1.5.4.zip
4848
# sudo mv ./linux-generic/cavif /bin
4949
# # find ./content/posts/ -type f \( -name "*.jpg" -o -name "*.png" -o -name "*.jpeg" \) -exec cavif {} \;
50-
51-
- name: Build and Publish Github Pages
52-
uses: ./.github/workflows/gh-pages.yml
5350

54-
- name: Build and Publish IPFS
55-
uses: ./.github/workflows/ipfs.yml
51+
github_pages:
52+
name: Build and Publish Github Pages
53+
uses: ./.github/workflows/gh-pages.yml
54+
needs:
55+
- start
5656

57+
ipfs:
58+
name: Build and Publish IPFS
59+
uses: ./.github/workflows/ipfs.yml
60+
needs:
61+
- start
62+
63+
end:
64+
steps:
5765
- name: Easyindex
5866
run: |
5967
echo '${{ secrets.GOOGLE_INDEXING_API_TOKEN }}' > ./credentials.json
@@ -66,3 +74,5 @@ jobs:
6674
curl -s -L https://github.com/usk81/easyindex-cli/releases/download/v1.0.6/easyindex-cli_1.0.6_linux_amd64.tar.gz | tar xz
6775
chmod +x ./easyindex-cli
6876
./easyindex-cli google -d -c ./url.csv
77+
needs:
78+
- github_pages

0 commit comments

Comments
 (0)