Skip to content

Commit bd38a4d

Browse files
committed
placeholder triggerbookbuild.yaml file
1 parent a163052 commit bd38a4d

File tree

2 files changed

+18
-35
lines changed

2 files changed

+18
-35
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: trigger-book-build
2+
on:
3+
workflow_call:
4+
inputs:
5+
code_artifact_name:
6+
description: 'Artifact of the repository after automate-metrics has run.'
7+
required: true
8+
default: 'repo-zip'
9+
type: string
10+
11+
jobs:
12+
build:
13+
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
14+
with:
15+
environment_name: pythia-book-dev
16+
artifact_name: book-zip-${{ github.event.number }}
17+
code_artifact_name: {{ code_artifact_name }}
18+
# Other input options are possible, see ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml

.github/workflows/trigger-preview.yaml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,7 @@ on:
88
- completed
99

1010
jobs:
11-
automate-metrics:
12-
runs-on: macos-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- name: Automate Metrics
16-
env:
17-
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
18-
PRIVATE_KEY_ID: ${{ secrets.PRIVATE_KEY_ID }}
19-
run: |
20-
python -m venv analytics-api
21-
source analytics-api/bin/activate
22-
pip install google-analytics-data cartopy matplotlib
23-
24-
python .github/workflows/get-metrics.py
25-
python .github/workflows/write-metrics-md.py
26-
- name: Zip the repo
27-
run: |
28-
set -x
29-
set -e
30-
if [ -f repo.zip ]; then
31-
rm -rf repo.zip
32-
fi
33-
zip -r repo.zip .
34-
35-
upload-zip:
36-
needs: automate-metrics
37-
runs-on: macos-latest
38-
steps:
39-
- name: Upload artifact
40-
uses: actions/upload-artifact@v4
41-
with:
42-
name: 'repo-w-metrics'
43-
path: 'repo.zip'
44-
4511
find-pull-request:
46-
needs: upload-zip
4712
uses: ProjectPythia/cookbook-actions/.github/workflows/find-pull-request.yaml@main
4813

4914
deploy-preview:

0 commit comments

Comments
 (0)