11# After successful versioning, this script runs various
22# parts of the push process
3- name : Push 2
3+ name : Push
44
55on :
66 workflow_run :
7- workflows : ["Push 1 "]
7+ workflows : ["Update versioning "]
88 types : [completed]
99
1010jobs :
@@ -46,11 +46,19 @@ jobs:
4646 - name : Build datasets
4747 run : make data
4848 env :
49- TEST_LITE : true
49+ LITE_MODE : true
5050 - name : Run tests
5151 run : pytest
5252 - name : Test documentation builds
5353 run : make documentation
54+ - name : Build Jupyter Book
55+ run : make documentation
56+ - name : Deploy documentation
57+ uses : JamesIves/github-pages-deploy-action@releases/v4
58+ with :
59+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60+ BRANCH : gh-pages
61+ FOLDER : docs/_build/html
5462 publish-to-pypi :
5563 name : Publish to PyPI
5664 runs-on : ubuntu-latest
@@ -92,63 +100,4 @@ jobs:
92100 - name : Build container
93101 run : docker build . -f docker/policyengine_us_data.Dockerfile -t ghcr.io/policyengine/policyengine-us-data:latest
94102 - name : Push container
95- run : docker push ghcr.io/policyengine/policyengine-us-data:latest
96- publish-docs :
97- name : Publish documentation
98- runs-on : ubuntu-latest
99- if : ${{ github.event.workflow_run.conclusion == 'success' }}
100- steps :
101- - name : Checkout code
102- uses : actions/checkout@v4
103- with :
104- fetch-depth : 0 # Fetch all history for all tags and branches
105- - name : Set up Python
106- uses : actions/setup-python@v5
107- with :
108- python-version : 3.12
109- - name : Install package
110- run : pip install -e ".[dev]"
111- - name : Build Jupyter Book
112- run : make documentation
113- - name : Deploy documentation
114- uses : JamesIves/github-pages-deploy-action@releases/v4
115- with :
116- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
117- BRANCH : gh-pages
118- FOLDER : docs/_build/html
119- upload :
120- name : Upload data
121- runs-on : ubuntu-latest
122- needs : [lint, test]
123- if : ${{ github.event.workflow_run.conclusion == 'success' }}
124- steps :
125- - name : Checkout code
126- uses : actions/checkout@v4
127- with :
128- fetch-depth : 0 # Fetch all history for all tags and branches
129- - name : Set up Python
130- uses : actions/setup-python@v5
131- with :
132- python-version : 3.12
133- - name : Install package
134- run : pip install -e ".[dev]"
135- - name : Download data inputs
136- run : make download
137- env :
138- POLICYENGINE_US_DATA_GITHUB_TOKEN : ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
139- - name : Build datasets
140- run : make data
141- - name : Upload CPS 2024
142- uses : actions/upload-artifact@v4
143- with :
144- name : cps_2024.h5
145- path : policyengine_us_data/storage/cps_2024.h5
146- - name : Upload ECPS 2024
147- uses : actions/upload-artifact@v4
148- with :
149- name : enhanced_cps_2024.h5
150- path : policyengine_us_data/storage/enhanced_cps_2024.h5
151- - name : Upload data
152- run : make upload
153- env :
154- POLICYENGINE_US_DATA_GITHUB_TOKEN : ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
103+ run : docker push ghcr.io/policyengine/policyengine-us-data:latest
0 commit comments