Skip to content

Commit

Permalink
GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tcompa committed Dec 9, 2024
1 parent 909bff3 commit 66f9911
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
with:
repository: fractal-analytics-platform/fractal-web
ref: tasks-list-module # FIXME
with:
sparse-checkout: |
components
tasks-list
- uses: actions/setup-node@v4
with:
Expand All @@ -64,24 +68,24 @@ jobs:

- name: Install components dependencies
run: |
cd fractal-web/components
cd ../fractal-web/components
npm install
- name: Install tasks-list dependencies
run: |
cd fractal-web/tasks-list
cd ../fractal-web/tasks-list
npm install
- name: Move tasks.json file to fractal-web/tasks-list/src
run: mv tasks/data_retrieval/tasks_data.json fractal-web/tasks-list/src/tasks.json

- name: Build tasks-list page
run: |
cd fractal-web/tasks-list
cd ../fractal-web/tasks-list
npm run build
- name: Move tasks-list built files in docs site
run: mv fractal-web/tasks-list/build/ site/fractal-tasks
run: mv ../fractal-web/tasks-list/build/ ../site/fractal-tasks

- name: Deploy docs
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
Expand Down

0 comments on commit 66f9911

Please sign in to comment.