Skip to content

Commit b104fd5

Browse files
committed
chore: deploy itowns and potree bundle.
1 parent 870299f commit b104fd5

File tree

1 file changed

+15
-25
lines changed

1 file changed

+15
-25
lines changed

.github/workflows/integration.yml

+15-25
Original file line numberDiff line numberDiff line change
@@ -91,46 +91,36 @@ jobs:
9191
name: Deploy to itowns.github.io
9292
steps:
9393
# Download artifact from build
94-
- name: Download bundle
94+
- name: Download bundle itowns
9595
uses: actions/download-artifact@v2
9696
with:
9797
name: dist-itowns
98+
- name: Download bundle potree
99+
uses: dawidd6/action-download-artifact@v2
100+
with:
101+
workflow: intergration.yml
102+
repo: iTowns/potree
103+
name: dist-potree
98104
# Copy files for deployment
99105
- name: build site
100106
run: |
101107
mkdir -p itowns/dist
108+
mkdir -p itowns/potree/build
109+
mkdir -p itowns/potree/libs
102110
cp -R dist/*.js itowns/dist/
103111
cp -R examples itowns/
104112
cp -R buildDocs itowns/docs
113+
cp -R build itowns/potree/
114+
cp -R libs itowns/potree/
105115
106-
# Deploy to itowns.github.io dist
107-
- name: Deploy to itowns.github.io dist
108-
uses: peaceiris/actions-gh-pages@v3
109-
with:
110-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
111-
external_repository: iTowns/itowns.github.io
112-
publish_dir: ./itowns/dist
113-
destination_dir: ./itowns/dist
114-
publish_branch: master
115-
enable_jekyll: true
116-
# Deploy to itowns.github.io examples
117-
- name: Deploy to itowns.github.io examples
118-
uses: peaceiris/actions-gh-pages@v3
119-
with:
120-
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
121-
external_repository: iTowns/itowns.github.io
122-
publish_dir: ./itowns/examples
123-
destination_dir: ./itowns/examples
124-
publish_branch: master
125-
enable_jekyll: true
126-
# Deploy to itowns.github.io docs
127-
- name: Deploy to itowns.github.io docs
116+
# Deploy to itowns.github.io
117+
- name: Deploy to itowns.github.io
128118
uses: peaceiris/actions-gh-pages@v3
129119
with:
130120
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
131121
external_repository: iTowns/itowns.github.io
132-
publish_dir: ./itowns/docs
133-
destination_dir: ./itowns/docs
122+
publish_dir: ./itowns
123+
destination_dir: ./itowns
134124
publish_branch: master
135125
enable_jekyll: true
136126

0 commit comments

Comments
 (0)