-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87f1b43
commit 93aec55
Showing
51 changed files
with
1,963 additions
and
62,709 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
- latest | ||
- develop | ||
- 'pre/*' | ||
- 'production/test/*' | ||
- 'demo/test/*' | ||
tags: | ||
- 'v*' | ||
- 'demo/*' | ||
|
@@ -34,7 +34,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
# Conditional Checkout for Branch | ||
- name: Checkout Branch | ||
- name: Checkout Branch if branch-triggered-sync | ||
if: contains(github.ref, 'refs/heads/') | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -43,7 +43,7 @@ jobs: | |
ref: ${{ needs.extract_branch_or_tag.outputs.ref_name }} | ||
|
||
# Conditional Checkout for Tag | ||
- name: Checkout Tag | ||
- name: Checkout Tag if tag-triggered-sync | ||
if: contains(github.ref, 'refs/tags/') | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -53,27 +53,9 @@ jobs: | |
ref: ${{ needs.extract_branch_or_tag.outputs.ref_name }} | ||
fetch-tags: true | ||
|
||
- name: Create new branch or tag | ||
uses: GuillaumeFalourd/[email protected] | ||
if: contains(github.ref, 'refs/heads/') | ||
with: | ||
repository_owner: flexcompute-readthedocs | ||
repository_name: tidy3d-docs | ||
new_branch_name: ${{ needs.extract_branch_or_tag.outputs.ref_name }} | ||
access_token: ${{ secrets.GH_PAT }} | ||
new_branch_ref: default_clean_sync_branch | ||
ignore_branch_exists: true | ||
|
||
- name: Tag and push | ||
if: contains(github.ref, 'refs/tags/') | ||
- name: Push corresponding reference to mirror repo | ||
run: | | ||
git push --force --tags https://${{ secrets.GH_PAT }}@github.com/flexcompute-readthedocs/tidy3d-docs.git | ||
- uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: . | ||
token: ${{ secrets.GH_PAT }} | ||
repository-name: flexcompute-readthedocs/tidy3d-docs | ||
target-folder: . | ||
branch: ${{ needs.extract_branch_or_tag.outputs.ref_name }} | ||
force: true | ||
git remote add mirror https://github.com/flexcompute-readthedocs/tidy3d-docs.git | ||
git push mirror ${{ needs.extract_branch_or_tag.outputs.ref_name }} --force # overwrites always | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ Simulation | |
:template: module.rst | ||
|
||
tidy3d.Simulation | ||
tidy3d.RunTimeSpec |
File renamed without changes.
Oops, something went wrong.