Skip to content

Commit d3df19b

Browse files
committed
Add the github environment configuration step
Signed-off-by: Federico Busetti <[email protected]>
1 parent ccc41c4 commit d3df19b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ previous python versions directly in the CI pipeline.
5151
* Install dev dependencies with `make dev-dependencies`
5252
* Setup GitHub pages (this need local development setup):
5353
* Initialise documentation branch `poetry run mike deploy dev latest --update-aliases --push`
54-
* Configure GitHub Pages to deploy from the `gh-pages` branch (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/pages`)
54+
* Configure GitHub Pages to deploy from the `gh-pages` branch (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/pages`)
55+
* Add the `main` branch and the `v*.*.*` tag rules to the "deployment branches and tags" list in the `gh-pages` environment (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/environments`)
5556

5657
**IMPORTANT:** The repository is configured to deploy on the [test PyPI repository](https://test.pypi.org/).
5758
It's strongly recommended to create the project in the [test PyPI repository](https://test.pypi.org/) and test

docs/index.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,18 @@ previous python versions directly in the CI pipeline.
2828
* Owner: The github repository owner (in this case `febus982`)
2929
* Repository name: The github repository name (in this case `bootstrap-python-package`)
3030
* Workflow name: `release.yml`
31+
* Create a GitHub Actions secret named `CODECLIMATE_REPORTER_ID` (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/secrets/actions`)
32+
containing the codeclimate reporter id (you can find it at `https://codeclimate.com/repos/YOUR_REPO_ID/settings/test_reporter`).
33+
If you don't want to use CodeClimate just delete `workflows/python-quality.yml`.
34+
* Update the badges in `README.md`! (check [shields.io](https://shields.io/) for extra badges)
3135
* Setup local development:
3236
* Clone the repository
3337
* Install poetry `pip install poetry`
3438
* Install dev dependencies with `make dev-dependencies`
3539
* Setup GitHub pages (this need local development setup):
3640
* Initialise documentation branch `poetry run mike deploy dev latest --update-aliases --push`
37-
* Configure GitHub Pages to deploy from the `gh-pages` branch (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/pages`)
38-
* Create a GitHub Actions secret named `CODECLIMATE_REPORTER_ID` (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/secrets/actions`)
39-
containing the codeclimate reporter id (you can find it at `https://codeclimate.com/repos/YOUR_REPO_ID/settings/test_reporter`).
40-
If you don't want to use CodeClimate just delete `workflows/python-quality.yml`.
41-
* Update the badges in `README.md`! (check [shields.io](https://shields.io/) for extra badges)
41+
* Configure GitHub Pages to deploy from the `gh-pages` branch (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/pages`)
42+
* Add the `main` branch and the `v*.*.*` tag rules to the "deployment branches and tags" list in the `gh-pages` environment (at URL `https://github.com/GITHUB_NAME_OR_ORGANIZATION/GITHUB_REPOSITORY/settings/environments`)
4243

4344
**IMPORTANT:** The repository is configured to deploy on the [test PyPI repository](https://test.pypi.org/).
4445
It's strongly recommended to create the project in the [test PyPI repository](https://test.pypi.org/) and test

0 commit comments

Comments
 (0)