Skip to content

Commit 2e0ad81

Browse files
authored
Merge pull request #133 from bsipocz/MAINT_deploy_manifest
2 parents 7648593 + b31a28c commit 2e0ad81

File tree

2 files changed

+48
-3
lines changed

2 files changed

+48
-3
lines changed

.github/workflows/ci_publish.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish HTML
1+
name: Build and Publish HTML and deployed_notebooks
22

33
on:
44
push:
@@ -14,7 +14,7 @@ concurrency:
1414

1515
jobs:
1616

17-
publish:
17+
publish_html:
1818
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
1919
name: Publish HTML
2020
runs-on: ubuntu-latest
@@ -29,7 +29,7 @@ jobs:
2929
- name: Install dependencies
3030
run: python -m pip install --upgrade tox
3131

32-
- name: Execute notebooks as testing
32+
- name: Execute notebooks while building HTMLs
3333
run: tox -e py311-buildhtml
3434

3535
- name: Publish
@@ -38,3 +38,22 @@ jobs:
3838
github_token: ${{ secrets.GITHUB_TOKEN }}
3939
publish_dir: ./_build/html/
4040
commit_message: ${{ github.event.head_commit.message }}
41+
42+
deploy_notebooks:
43+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
44+
name: Deploy deployed_notebook branch
45+
runs-on: ubuntu-latest
46+
needs: publish_html
47+
steps:
48+
- uses: actions/checkout@v4
49+
50+
- name: Deploy to deployed_notebooks branch
51+
run: |
52+
git config user.name "github-actions[bot]"
53+
git config user.email "github-actions[bot]@users.noreply.github.com"
54+
gith=$(git rev-parse HEAD)
55+
git checkout --orphan deployed_notebooks
56+
git rm --cached -r .
57+
git add --pathspec-from-file=deployed_notebooks_manifest.in --force
58+
git commit -m "Deploy notebooks for commit ${gith}"
59+
git push origin deployed_notebooks --force

deployed_notebooks_manifest.in

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
tutorials/cloud_access/cloud-access-intro.md
2+
tutorials/cloud_access/euclid-cloud-access.md
3+
tutorials/cosmodc2/cosmoDC2_TAP_access.md
4+
tutorials/euclid_access/.gitkeep
5+
tutorials/euclid_access/1_Euclid_intro_MER_images.md
6+
tutorials/euclid_access/2_Euclid_intro_MER_catalog.md
7+
tutorials/euclid_access/3_Euclid_intro_1D_spectra.md
8+
tutorials/euclid_access/4_Euclid_intro_PHZ_catalog.md
9+
tutorials/euclid_access/5_Euclid_intro_SPE_catalog.md
10+
tutorials/euclid_access/Euclid_ERO.md
11+
tutorials/firefly/NEOWISE_light_curve_demo.md
12+
tutorials/firefly/OpenUniverse2024Preview_Firefly.md
13+
tutorials/firefly/SEDs_in_Firefly.md
14+
tutorials/irsa-sia-examples/sia_2mass_allsky.md
15+
tutorials/irsa-sia-examples/sia_allwise_atlas.md
16+
tutorials/irsa-sia-examples/sia_cosmos.md
17+
tutorials/irsa-sia-examples/siav2_seip.md
18+
tutorials/openuniversesims/openuniverse2024_roman_demodata_20000808_instances.csv
19+
tutorials/openuniversesims/openuniverse2024_roman_simulated_timedomainsurvey.md
20+
tutorials/openuniversesims/openuniverse2024_roman_simulated_wideareasurvey.md
21+
tutorials/parallelize/Parallelize_Convolution.md
22+
tutorials/parquet-catalog-demos/neowise-source-table-lightcurves.md
23+
tutorials/parquet-catalog-demos/neowise-source-table-strategies.md
24+
tutorials/parquet-catalog-demos/wise-allwise-catalog-demo.md
25+
tutorials/roman_simulations/roman_hlss_number_density.md
26+
tutorials/spherex/spherex_intro.md

0 commit comments

Comments
 (0)