You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -33,10 +33,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
33
33
34
34
### Added
35
35
36
+
- Ability to upload pip / conda packages to <https://packages.arup.com> for internal Arup projects.
36
37
- Composite action for building a project-specific conda environment, used across reusable workflows but also available for direct use as a step in other projects (#26).
37
38
- Environment cache directory within the runner working directory (`.cache/envs`) (#29).
Copy file name to clipboardexpand all lines: README.md
+39-12
Original file line number
Diff line number
Diff line change
@@ -108,15 +108,14 @@ jobs:
108
108
message: "AWS upload action"
109
109
```
110
110
111
-
!!! note
112
-
113
-
You can _only_ use `secrets: inherit` if you are hosting your repository in the `arup-group` organisation.
114
-
If you have the repo under your own username, you will need to explicitly pass the necessary secrets, e.g.:
115
-
116
-
``` yaml
117
-
secrets:
118
-
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
119
-
```
111
+
> [!NOTE]
112
+
> You can _only_ use `secrets: inherit` if you are hosting your repository in the `arup-group` organisation.
113
+
> If you have the repo under your own username, you will need to explicitly pass the necessary secrets, e.g.:
114
+
>
115
+
> ``` yaml
116
+
> secrets:
117
+
> SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
118
+
> ```
120
119
121
120
## Available workflows
122
121
@@ -146,8 +145,15 @@ _Inputs_:
146
145
- environment (optional, default="pre-release"): GitHub environment in which secrets are stored.
147
146
Environments help to ensure that only certain operations are available to different user types.
148
147
E.g., releasing packages can be given an extra layer of security whereby a maintainer has to approve an action before it can run.
148
+
- destination (optional, default="anaconda"): One of "anaconda" or "internal", to specify what the ultimate destination of the package will be.
149
+
If `internal`, the package will be uploaded to <https://packages.arup.com/conda>.
150
+
If `anaconda`, the package will be uploaded to <https://anaconda.org/[CHANNEL-NAME]/> where `[CHANNEL-NAME]` is linked to the `ANACONDA_TOKEN` secret.
149
151
150
152
_Required secrets_: `ANACONDA_TOKEN`(required to verify that later upload will not fail) stored in a GitHub actions environment of the same name as `environment`.
153
+
If `destination=internal`, this secret must still be defined, but can be a placeholder string (e.g. "NA").
154
+
155
+
> [!NOTE]
156
+
> To use this action with `destination=internal`, you must request access to the `packages` self-hosted runner for your repository via an Arup service-now request.
151
157
152
158
### Upload a conda package
153
159
@@ -164,10 +170,17 @@ _Inputs_:
164
170
- environment (optional, default="pre-release"): GitHub environment in which secrets are stored.
165
171
Environments help to ensure that only certain operations are available to different user types.
166
172
E.g., releasing packages can be given an extra layer of security whereby a maintainer has to approve an action before it can run.
173
+
- destination (optional, default="anaconda"): One of "anaconda" or "internal", to specify what the ultimate destination of the package will be.
174
+
If `internal`, the package will be uploaded to <https://packages.arup.com/conda>.
175
+
If `anaconda`, the package will be uploaded to <https://anaconda.org/[CHANNEL-NAME]/> where `[CHANNEL-NAME]` is linked to the `ANACONDA_TOKEN` secret.
167
176
168
177
_Required secrets_: `ANACONDA_TOKEN`stored in a GitHub actions environment of the same name as `environment`.
178
+
If `destination=internal`, this secret must still be defined, but can be a placeholder string (e.g. "NA").
169
179
170
-
### Build a pip package for upload to PyPI
180
+
> [!NOTE]
181
+
> To use this action with `destination=internal`, you must request access to the `packages` self-hosted runner for your repository via an Arup service-now request.
182
+
183
+
### Build a pip package for upload to PyPI or to <https://packages.arup.com>
@@ -187,10 +200,17 @@ E.g., releasing packages can be given an extra layer of security whereby a maint
187
200
- pip_args (optional, default="--no-deps"). Any arguments to pass to pip when running test installations.
188
201
Many of our packages have non-python dependencies, so it is useful to use `--no-deps` in the installation.
189
202
However, if you know that your library has purely python dependencies then the pip build process is made more robust by removing this argument (i.e. `pip_args: ""`)
203
+
- destination (optional, default="pypi"): One of "pypi" or "internal", to specify what the ultimate destination of the package will be.
204
+
If `internal`, the package will be uploaded to <https://packages.arup.com>.
205
+
If `pypi`, the package will be uploaded to <https://test.pypi.org/> for testing and <https://pypi.org/> for final upload.
190
206
191
207
_Required secrets_: `TEST_PYPI_API_TOKEN`stored in a GitHub actions environment of the same name as `environment`.
208
+
If `destination=internal`, this secret must still be defined, but can be a placeholder string (e.g. "NA").
209
+
210
+
> [!NOTE]
211
+
> To use this action with `destination=internal`, you must request access to the `packages` self-hosted runner for your repository via an Arup service-now request.
192
212
193
-
### Upload a pip package to PyPI
213
+
### Upload a pip package to PyPI or to <https://packages.arup.com>
- environment (optional, default="pre-release"): GitHub environment in which secrets are stored.
206
226
Environments help to ensure that only certain operations are available to different user types.
207
227
E.g., releasing packages can be given an extra layer of security whereby a maintainer has to approve an action before it can run.
228
+
- destination (optional, default="pypi"): One of "pypi" or "internal", to specify what the ultimate destination of the package will be.
229
+
If `internal`, the package will be uploaded to <https://packages.arup.com>.
230
+
If `pypi`, the package will be uploaded to <https://test.pypi.org/> for testing and <https://pypi.org/> for final upload.
208
231
209
232
_Required secrets_: `PYPI_API_TOKEN`stored in a GitHub actions environment of the same name as `environment`.
233
+
If `destination=internal`, this secret must still be defined, but can be a placeholder string (e.g. "NA").
234
+
235
+
> [!NOTE]
236
+
> To use this action with `destination=internal`, you must request access to the `packages` self-hosted runner for your repository via an Arup service-now request.
_description_: If your project was generated using a [cookiecutter](https://github.com/cookiecutter/cookiecutter) template, check whether there are changes to the template that could be pulled into the project.
326
+
_description_: If your project was generated using a [cookiecutter](https://github.com/cookiecutter/cookiecutter) template, check whether there are changes to the template that could be pulled into the project.
0 commit comments