Skip to content

Commit cc69af1

Browse files
committed
Cleanup docs.yml ci workflow
1 parent 002d118 commit cc69af1

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
paths-ignore: # ignore docs only changes since they use a dedicated workflows: docs.yml
88
- 'docs/**'
99
- 'mithril-explorer/**'
10+
- '.github/workflows/docs.yml'
1011

1112
jobs:
1213
build-ubuntu-X64:

.github/workflows/docs.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
docs/build/*
5959
6060
build-explorer:
61-
if: github.event.pull_request.draft == false
6261
runs-on: ubuntu-22.04
6362
steps:
6463
- name: Checkout sources
@@ -85,7 +84,6 @@ jobs:
8584
mithril-explorer/out/*
8685
8786
build-open-api-ui:
88-
if: github.event.pull_request.draft == false
8987
runs-on: ubuntu-22.04
9088
steps:
9189
- name: Checkout sources
@@ -106,7 +104,7 @@ jobs:
106104
out/*
107105
108106
publish-docs:
109-
if: github.event.pull_request.draft == false
107+
if: github.ref == 'refs/heads/main'
110108
runs-on: ubuntu-22.04
111109
needs:
112110
- cargo-doc
@@ -143,13 +141,8 @@ jobs:
143141
echo "mithril.network" > ./github-pages/CNAME
144142
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://mithril.network/doc"></head></html>' > ./github-pages/index.html
145143
146-
- name: (temp) List output
147-
run: |
148-
ls ./github-pages/*
149-
150144
- name: Mithril / Publish Github Pages
151145
uses: peaceiris/actions-gh-pages@v3
152-
if: github.ref == 'refs/heads/main'
153146
with:
154147
github_token: ${{ secrets.GITHUB_TOKEN || github.token }}
155148
publish_dir: ./github-pages

0 commit comments

Comments
 (0)