Skip to content

Commit 0aa8fe0

Browse files
working on doc publishing
1 parent d84933e commit 0aa8fe0

3 files changed

Lines changed: 40 additions & 32 deletions

File tree

.github/workflows/release-publish.yml

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Publish Release
22

3-
# TODO: create a github release?
3+
# TODO: create a github release. This is needed to trigger webhooks.
44

55
permissions:
66
actions: read
@@ -113,26 +113,27 @@ jobs:
113113
# TODO: re-enable. Disabled for pipeline development
114114
# nox -s pkg_publish_pypi_prod
115115
116-
release-readthedocs:
117-
name: "Release documentation to readthedocs.com"
118-
# needs: release-checkpoint
119-
runs-on: ubuntu-latest
120-
# environment: production
121-
steps:
122-
- name: "Checkout code"
123-
uses: actions/checkout@v4
124-
- name: "Prepare common Python build environment"
125-
uses: ./.github/actions/python-build-env-setup
126-
with:
127-
python-version: ${{ env.PYTHON_VERSION }}
128-
- name: "Download Built Documentations"
129-
uses: actions/download-artifact@v4
130-
with:
131-
name: planet-auth-mkdocs-site
132-
# github-token: ${{ secrets.GH_PAT }}
133-
# repository: '${{ github.repository }}'
134-
# run-id: '${{ github.run_id }}'
135-
path: site
136-
- name: "Nox: Publish to ReadTheDocs"
137-
run: |
138-
nox -s mkdocs_publish_readthedocs
116+
# Read the docs is published via webhook GitHub webhook
117+
# release-readthedocs:
118+
# name: "Release documentation to readthedocs.com"
119+
# # needs: release-checkpoint
120+
# runs-on: ubuntu-latest
121+
# # environment: production
122+
# steps:
123+
# - name: "Checkout code"
124+
# uses: actions/checkout@v4
125+
# - name: "Prepare common Python build environment"
126+
# uses: ./.github/actions/python-build-env-setup
127+
# with:
128+
# python-version: ${{ env.PYTHON_VERSION }}
129+
# - name: "Download Built Documentations"
130+
# uses: actions/download-artifact@v4
131+
# with:
132+
# name: planet-auth-mkdocs-site
133+
# # github-token: ${{ secrets.GH_PAT }}
134+
# # repository: '${{ github.repository }}'
135+
# # run-id: '${{ github.run_id }}'
136+
# path: site
137+
# - name: "Nox: Publish to ReadTheDocs"
138+
# run: |
139+
# nox -s mkdocs_publish_readthedocs

RELEASE.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
*Planet maintainers only*
44

55
Releasing consists of publishing new packages to PyPi and ReadTheDocs, and
6-
is automated using Github Workflows and Actions. Once initiated, the
7-
release pipeline will automatically take care of building, testing, tagging,
8-
and publishing the release.
6+
is automated using Github workflows, actions, and webhooks. Once initiated,
7+
the release orchestration pipeline will automatically take care of building,
8+
testing, tagging, and publishing the release.
99

1010
## Versions and Stability
1111

@@ -16,8 +16,11 @@ changes (like documentation).
1616

1717
## Release Workflow
1818

19-
Releases should generally be published from the main branch, which should be
20-
kept stable.
19+
The `main` branch is intended to be kept stable with the most up-to-date
20+
feature set, and should normally be the branch used for new feature releases.
21+
Patch branches may be necessary when the need to fix older versions arises.
22+
23+
To release a new version, complete the following steps:
2124

2225
1. Create a release branch off of `main` that bumps the version number in
2326
[version.txt](./version.txt), and updates the
@@ -26,7 +29,7 @@ kept stable.
2629
create a PR to merge the release branch into `main`.
2730
3. Ensure that all tests are passing on `main` branch after all merges.
2831
4. Determine the type of release that should be performed. This will be passed
29-
to the release workflow as the `build-variant` argument:
32+
to the release workflow pipeline as the `build-variant` argument:
3033
* `release` - The final build for a new release version.
3134
* `rc` - A candidate for the final release.
3235
* `beta` - A beta release.
@@ -37,7 +40,7 @@ kept stable.
3740
* The release pipeline may be initiated by the `gh` CLI as follows:
3841
```bash
3942
gh workflow run .github/workflows/release-orchestrate.yml -f build-variant=_selected_release_variation_
40-
* ```
43+
```
4144

4245
## Local Publishing
4346

noxfile.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,5 +167,9 @@ def mkdocs_serve(session):
167167
@nox.session(python=_DEFAULT_PYTHON)
168168
def mkdocs_publish_readthedocs(session):
169169
session.install("-e", ".[build, docs]")
170-
# TODO
170+
# TODO - Manual doc publushing
171+
print(
172+
"ERROR: Read The Docs publishing not implemented in the noxfile."
173+
" Documentation publishing is triggered via GitHub webhook."
174+
)
171175
assert False

0 commit comments

Comments
 (0)