Skip to content

Commit

Permalink
limit artifact search and add dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pca006132 committed Nov 18, 2024
1 parent 27d957d commit 1bb84d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Deploy documentation

on:
push:
branches:
- master
workflow_run:
workflows: [CI]
types:
- completed
branches: [master]

jobs:
deploy_github_pages:
Expand All @@ -26,10 +28,14 @@ jobs:
with:
workflow: manifold.yml
workflow_conclusion: completed
event: push
branch: maser
# specific to the triggering workflow
run_id: ${{github.event.workflow_run.id}}
# do not download from old run
check_artifacts: true
name: wasm
path: ./public

- name: Deploy Javascript Docs to Github Pages
run: |
cd bindings/wasm
Expand All @@ -44,4 +50,4 @@ jobs:
publish_branch: gh-pages
force_orphan: true
cname: manifoldcad.org
publish_dir: ./public
publish_dir: ./public
6 changes: 4 additions & 2 deletions .github/workflows/publish_npm.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: publish_npm

on:
on:
release:
types: [published]
workflow_dispatch:
Expand All @@ -23,6 +23,8 @@ jobs:
with:
workflow: manifold.yml
workflow_conclusion: completed
branch: master
check_artifact: true
name: wasm
path: ./bindings/wasm/

Expand All @@ -31,4 +33,4 @@ jobs:
cd ./bindings/wasm/
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 1bb84d5

Please sign in to comment.