Skip to content

Commit 4dedd02

Browse files
committed
Update maintenance tasks for refreshing CI tokens
1 parent e883d38 commit 4dedd02

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

OpenSC-Release-Howto.md

+20-7
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,6 @@ Optionally, discuss changes to _NEWS_ by opening a [new issue](https://github.co
106106
* In case of security relevant changes, forward the announcement to [[email protected]](https://www.openwall.com/lists/oss-security/)
107107
* Update the [Main Wiki page](https://github.com/OpenSC/OpenSC/wiki) with links to new release
108108

109-
## Clean up old nightly builds repository
110-
111-
* The repository [OpenSC/Nightly](https://github.com/OpenSC/Nightly) is used to hold nightly builds for both MacOS and Windows.
112-
* They are pushed on every master commit so the old builds need to be cleaned up regularly.
113-
* Ideally after the new release is done, any old branch before last release can be removed through the github web UI on [OpenSC/Nightly/branches/stale](https://github.com/OpenSC/Nightly/branches/stale).
114-
* For more info, see the [related issues](https://github.com/OpenSC/Nightly/issues/1)
115-
116109
## Releasing patch versions of OpenSC
117110

118111
* Happens on exceptional basis only when fixing significant problems.
@@ -179,3 +172,23 @@ Optionally, discuss changes to _NEWS_ by opening a [new issue](https://github.co
179172
6. Wait for [artifacts to build](#build-and-test-binaries)
180173
7. [Create a new release](#build-and-test-binaries)
181174
8. Write [announcement](#announcement)
175+
176+
## Maintenance tasks
177+
178+
### Clean up old nightly builds repository
179+
180+
* The repository [OpenSC/Nightly](https://github.com/OpenSC/Nightly) is used to hold nightly builds for both MacOS and Windows.
181+
* They are pushed on every master commit so the old builds need to be cleaned up regularly.
182+
* Ideally after the new release is done, any old branch before last release can be removed through the github web UI on [OpenSC/Nightly/branches/stale](https://github.com/OpenSC/Nightly/branches/stale).
183+
* For more info, see the [related issues](https://github.com/OpenSC/Nightly/issues/1)
184+
185+
### Refreshing access tokens
186+
187+
There are two access tokens that are used by CI to push artifacts to the Nightly repository. One from Github
188+
Actions and one from AppVeyor. Their expiration can be checked on the
189+
[organization settings](https://github.com/organizations/OpenSC/settings/personal-access-tokens/active) page.
190+
191+
* When they expire, the new need tokens need to be generated in [user settings](https://github.com/settings/tokens?type=beta).
192+
* Both tokens need _Read_ and _Write_ access to code and _Read_ access to metadata in OpenSC/Nightly repository.
193+
* The Github Actions token needs to be inserted into the [OpenSC repository secrets](https://github.com/OpenSC/OpenSC/settings/secrets/actions).
194+
* The AppVeyor token needs to be encrypted using [AppVeyor website](https://ci.appveyor.com/account/frankmorgner/tools/encrypt) and updated in the `.appveyor.yml` for example like done in [#3230](https://github.com/OpenSC/OpenSC/pull/3230).

0 commit comments

Comments
 (0)