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 :
@@ -45,12 +45,28 @@ jobs:
4545 POLICYENGINE_US_DATA_GITHUB_TOKEN : ${{ secrets.POLICYENGINE_US_DATA_GITHUB_TOKEN }}
4646 - name : Build datasets
4747 run : make data
48- env :
49- TEST_LITE : true
5048 - name : Run tests
5149 run : pytest
5250 - name : Test documentation builds
5351 run : make documentation
52+ - name : Upload CPS 2024
53+ uses : actions/upload-artifact@v4
54+ with :
55+ name : cps_2024.h5
56+ path : policyengine_us_data/storage/cps_2024.h5
57+ - name : Upload ECPS 2024
58+ uses : actions/upload-artifact@v4
59+ with :
60+ name : enhanced_cps_2024.h5
61+ path : policyengine_us_data/storage/enhanced_cps_2024.h5
62+ - name : Build Jupyter Book
63+ run : make documentation
64+ - name : Deploy documentation
65+ uses : JamesIves/github-pages-deploy-action@releases/v4
66+ with :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ BRANCH : gh-pages
69+ FOLDER : docs/_build/html
5470 publish-to-pypi :
5571 name : Publish to PyPI
5672 runs-on : ubuntu-latest
@@ -92,63 +108,4 @@ jobs:
92108 - name : Build container
93109 run : docker build . -f docker/policyengine_us_data.Dockerfile -t ghcr.io/policyengine/policyengine-us-data:latest
94110 - 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 }}
111+ run : docker push ghcr.io/policyengine/policyengine-us-data:latest
0 commit comments