-
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
Showing
36 changed files
with
526 additions
and
84 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 |
---|---|---|
|
@@ -12,15 +12,17 @@ jobs: | |
github-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- name: Exit if any RC release | ||
if: contains(${{ github.ref }}, 'rc') == false | ||
uses: everlytic/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_ref: ${{ github.ref }} | ||
target_branch: "latest" | ||
commit_message_template: 'RELEASE: :shipit: :boom: :tada: Merged {source_ref} into target {target_branch}' | ||
commit_message_template: ':tada: RELEASE: Merged {source_ref} into target {target_branch}' | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
|
@@ -30,7 +32,9 @@ jobs: | |
pypi-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref }} | ||
- uses: actions/setup-python@v2 | ||
- name: Install dependencies | ||
run: | | ||
|
@@ -43,3 +47,17 @@ jobs: | |
run: | | ||
python -m build | ||
python -m twine upload --repository pypi dist/* | ||
sync_to_develop: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: "latest" | ||
- name: Exit if any RC release | ||
if: contains(${{ github.ref }}, 'rc') == false | ||
uses: everlytic/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
source_ref: "latest" | ||
target_branch: "develop" | ||
commit_message_template: ':tada: RELEASE: Synced latest into develop' |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Documentation Release | ||
--------------------- | ||
|
||
The `tidy3d-docs` repository automatically mirrors the `tidy3d` repository. Specifically, these branches are automatically synced. | ||
|
||
- main | ||
- latest | ||
- develop | ||
- 'pre/*' | ||
- 'v*' | ||
|
||
These branches are synced to the tidy3d-docs repo through the sync-readthedocs-repo Github action. | ||
You can read the latest versions synced in the action file. | ||
However, you need to configure how they appear in the documentation build in the readthedocs admin page. | ||
Only latest is the public version, others are private. | ||
|
||
The `latest` branch holds the state of the docs that we want to host in `latest` version on the website. These are the latest docs (including new notebooks, typo fixes, etc.) related to the last official release (not pre-release). | ||
|
||
The `stable` version of the docs on our website is built based on the last version tag which is not a pre-release tag (no `rc` ending). | ||
|
||
Hot Fix & Submodule Updates | ||
''''''''''''''''''''''''''' | ||
|
||
To make a “hot fix” (eg fix a typo, add a notebook, update the release FAQ), just update the ``latest`` branch in ``tidy3d`` repo. This should automatically sync to `tidy3d-docs`, and trigger a docs rebuild. **However, we should avoid this as this will cause the ``develop`` and ``latest branches`` to diverge.** Ideally, these hot fixes could wait until the next pre/post-release to be propagated through. | ||
|
||
NOTE: To avoid conflicts, ideally we should only update ``latest`` by merging ``develop`` in it, or at the very least we should make sure changes are propagated to both branches. |
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
Oops, something went wrong.