Skip to content

Commit e60716b

Browse files
committed
fix upload path
1 parent 6ccd292 commit e60716b

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/publish-site.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,22 @@ jobs:
2525
2626
python .github/workflows/get-metrics.py
2727
python .github/workflows/write-metrics-md.py
28-
- name: Zip the repo
29-
run: |
30-
set -x
31-
set -e
32-
if [ -f repo.zip ]; then
33-
rm -rf repo.zip
34-
fi
35-
zip -r repo.zip .
36-
37-
upload-zip:
38-
needs: automate-metrics
39-
runs-on: macos-latest
40-
steps:
41-
- name: Upload artifact
28+
- name: Upload zip
4229
uses: actions/upload-artifact@v4
4330
with:
44-
name: 'repo-w-metrics'
45-
path: 'repo.zip'
31+
name: repo-zip
32+
path: .
4633

4734
build:
48-
needs: upload-zip
35+
needs: automate-metrics
4936
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
5037
with:
5138
environment_file: 'environment.yml'
5239
environment_name: pythia
5340
path_to_notebooks: 'portal'
5441
build_command: 'make -j4 html'
5542
build_from_code_artifact: 'true'
56-
code_artifact_name: 'repo-w-metrics'
43+
code_artifact_name: 'repo-zip'
5744
# trigger_workflow: publish-site.yaml
5845

5946
deploy:

0 commit comments

Comments
 (0)