-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically deploy stable versions of the docs site to docs.plankto…
…scope.community (#299) * Add GitHub Actions workflow to deploy stable docs * Update URLs in the documentation which had linked to the docs-edge site * Fix typo in non-standard software installation guide
- Loading branch information
Showing
5 changed files
with
64 additions
and
8 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
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,60 @@ | ||
name: Deploy documentation (stable release channel) | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'documentation/stable' | ||
workflow_dispatch: | ||
|
||
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest | ||
# queued. But do not cancel in-progress runs - we want these deploymeents to complete. | ||
concurrency: | ||
group: "docs-stable-deploy" | ||
cancel-in-progress: false | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
deploy: | ||
environment: | ||
name: documentation-stable | ||
url: https://docs.planktoscope.community | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install poetry | ||
run: pipx install poetry==1.5.0 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'poetry' | ||
cache-dependency-path: | | ||
documentation/poetry.lock | ||
- name: Install build dependencies | ||
run: | | ||
poetry -C ./documentation/ install --with docs | ||
- name: Import external assets | ||
run: poetry -C ./documentation/ run poe --root ./documentation/ import-external-assets | ||
|
||
- name: Build documentation | ||
run: poetry -C ./documentation/ run poe --root ./documentation/ build | ||
|
||
- name: Push to ${{ vars.REPOSITORY_NAME }} | ||
uses: cpina/github-action-push-to-another-repository@main | ||
env: | ||
SSH_DEPLOY_KEY: ${{ secrets.DOCS_BETA_SSH_DEPLOY_KEY }} | ||
with: | ||
source-directory: documentation/site/ | ||
destination-github-username: PlanktoScope | ||
destination-repository-name: ${{ vars.REPOSITORY_NAME }} | ||
user-email: github-actions[bot]@users.noreply.github.com | ||
user-name: github-actions[bot] | ||
commit-message: Deploy ORIGIN_COMMIT | ||
target-directory: site |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# PlanktoScope Hardware | ||
|
||
You are viewing a copy of the PlanktoScope project documentation without the hardware setup guides, probably because you're viewing an offline, reduced-size copy of the PlanktoScope documentation served by your PlanktoScope. You should go to an [online copy of the PlanktoScope documentation](https://docs-edge.planktoscope.community) to find the hardware setup guides. | ||
You are viewing a copy of the PlanktoScope project documentation without the hardware setup guides, probably because you're viewing an offline, reduced-size copy of the PlanktoScope documentation served by your PlanktoScope. You should go to an [online copy of the PlanktoScope documentation](https://docs.planktoscope.community) to find the hardware setup guides. |
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