Skip to content

Commit fa40288

Browse files
daquinteroflexmomchil-flex
authored andcommitted
FEAT: Final touches for pre/2.6 🌟
1 parent 8d59d3e commit fa40288

File tree

4 files changed

+25
-10
lines changed

4 files changed

+25
-10
lines changed

.github/workflows/sync-to-readthedocs-repo.yaml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- main
88
- latest
99
- 'pre/*'
10+
- 'v*'
1011
workflow_dispatch:
1112
inputs:
1213
env:
@@ -35,7 +36,11 @@ jobs:
3536
steps:
3637
- id: setenv
3738
run: |
38-
if test -n "${{ github.event.inputs.env }}"
39+
if [[ "${{ needs.extract_branch.outputs.branch }}" =~ ^v.*$ ]]
40+
then
41+
echo "::set-output name=env::version"
42+
echo "ENV=version" >> $GITHUB_ENV
43+
elif test -n "${{ github.event.inputs.env }}"
3944
then
4045
echo "::set-output name=env::${{ github.event.inputs.env }}"
4146
echo "ENV=${{ github.event.inputs.env }}" >> $GITHUB_ENV
@@ -55,23 +60,35 @@ jobs:
5560
run: |
5661
echo "The destination branch is ${{ needs.extract_branch.outputs.branch }}"
5762
case ${{ env.ENV }} in
63+
version)
64+
new_branch_name="${{ needs.extract_branch.outputs.branch }}"
65+
echo "::set-output name=branch::${new_branch_name}"
66+
;;
5867
dev)
59-
echo "::set-output name=branch::${{ needs.extract_branch.outputs.branch }}"
60-
;;
68+
echo "::set-output name=branch::${{ needs.extract_branch.outputs.branch }}"
69+
;;
6170
prod)
62-
echo "::set-output name=branch::main"
63-
;;
71+
echo "::set-output name=branch::main"
72+
;;
6473
esac
6574
build-and-deploy:
6675
needs: set_env
6776
runs-on: ubuntu-latest
6877
steps:
6978
- name: Checkout
7079
uses: actions/checkout@v3
80+
- name: Create new branch if version pattern
81+
uses: GuillaumeFalourd/[email protected]
82+
with:
83+
repository_owner: flexcompute-readthedocs
84+
repository_name: tidy3d-docs
85+
new_branch_name: ${{ needs.set_env.outputs.dest-branch }}
86+
access_token: ${{ secrets.GH_PAT }}
87+
ignore_branch_exists: true
7188
- uses: JamesIves/github-pages-deploy-action@v4
7289
with:
7390
folder: .
7491
token: ${{ secrets.GH_PAT }}
7592
repository-name: flexcompute-readthedocs/tidy3d-docs
7693
target-folder: .
77-
branch: ${{ needs.set_env.outputs.dest-branch }}
94+
branch: ${{ needs.set_env.outputs.dest-branch }}

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "docs/notebooks"]
22
path = docs/notebooks
3-
url = https://github.com/flexcompute/tidy3d-notebooks.git
3+
url = git@github.com:flexcompute/tidy3d-notebooks.git
44
branch = develop

docs/notebooks

Submodule notebooks updated 108 files

tests/full_test_notebooks.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@
3333
run_only = []
3434

3535
skip = [
36-
"8ChannelDemultiplexer",
37-
"90BendPolarizationSplitterRotator",
3836
"AdjointPlugin5BoundaryGradients",
3937
"AdjointPlugin6GratingCoupler",
4038
"AdjointPlugin7Metalens",

0 commit comments

Comments
 (0)