Skip to content

Commit

Permalink
[WIP] Update docs workflow to download wasm dependency for mithril-ex…
Browse files Browse the repository at this point in the history
…plorer
  • Loading branch information
dlachaume committed Jan 11, 2024
1 parent e2c2553 commit 265df91
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ concurrency:
cancel-in-progress: true

jobs:
docs:
uses: ./.github/workflows/docs.yml

build-ubuntu-X64:
runs-on: ubuntu-20.04
outputs:
Expand Down
29 changes: 24 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Documentations & Explorer

# on:
# push:
# branches:
# - 'main'
# pull_request:
# types: [opened, reopened, synchronize]

on:
push:
branches:
- 'main'
pull_request:
types: [opened, reopened, synchronize]
workflow_run:
workflows:
- CI

concurrency:
group: ci-docs-${{ github.ref }}
Expand Down Expand Up @@ -90,6 +95,20 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Download built artifacts (mithril-client-wasm)
uses: dawidd6/action-download-artifact@v2
with:
name: mithril-distribution-wasm
path: mithril-client-wasm
commit: ${{ github.sha }}
workflow: ci.yml
workflow_conclusion: success

- name: Unpack 'mithril-client-wasm' package
working-directory: mithril-client-wasm
run:
tar -xvzf pkg/*.tgz -C pkg/ && mv pkg/package/* pkg/

- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 265df91

Please sign in to comment.