File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 7
7
paths-ignore : # ignore docs only changes since they use a dedicated workflows: docs.yml
8
8
- ' docs/**'
9
9
- ' mithril-explorer/**'
10
+ - ' .github/workflows/docs.yml'
10
11
11
12
jobs :
12
13
build-ubuntu-X64 :
Original file line number Diff line number Diff line change 58
58
docs/build/*
59
59
60
60
build-explorer :
61
- if : github.event.pull_request.draft == false
62
61
runs-on : ubuntu-22.04
63
62
steps :
64
63
- name : Checkout sources
85
84
mithril-explorer/out/*
86
85
87
86
build-open-api-ui :
88
- if : github.event.pull_request.draft == false
89
87
runs-on : ubuntu-22.04
90
88
steps :
91
89
- name : Checkout sources
@@ -106,7 +104,7 @@ jobs:
106
104
out/*
107
105
108
106
publish-docs :
109
- if : github.event.pull_request.draft == false
107
+ if : github.ref == 'refs/heads/main'
110
108
runs-on : ubuntu-22.04
111
109
needs :
112
110
- cargo-doc
@@ -143,13 +141,8 @@ jobs:
143
141
echo "mithril.network" > ./github-pages/CNAME
144
142
echo '<!DOCTYPE html><html><head><meta http-equiv="Refresh" content="0; URL=https://mithril.network/doc"></head></html>' > ./github-pages/index.html
145
143
146
- - name : (temp) List output
147
- run : |
148
- ls ./github-pages/*
149
-
150
144
- name : Mithril / Publish Github Pages
151
145
uses : peaceiris/actions-gh-pages@v3
152
- if : github.ref == 'refs/heads/main'
153
146
with :
154
147
github_token : ${{ secrets.GITHUB_TOKEN || github.token }}
155
148
publish_dir : ./github-pages
You can’t perform that action at this time.
0 commit comments