forked from cargo-prebuilt/index
-
Notifications
You must be signed in to change notification settings - Fork 0
Making a public index
harmless-tech edited this page Aug 21, 2023
·
7 revisions
- Click on Use as template here, then Create a new repository.
- Give it a name, set it as public, and make sure to check Include all branches.
- Add releases for
stable-index
,track-index
, andbanned-index
.- Click on Create a new release under Releases.
- For Choose a tag use one of the above, create them if needed. Give it a title if you want, then publish the release.
- Repeat for all tags.
- Generate a token: (This is needed because the Check for updates workflow creates and pushes other workflows)
- Go to https://github.com/settings/tokens?type=beta and click Generate new token.
- Give it a name and a long expiry.
- For Repository access click Only select repositories and add your created index.
- For Repository permissions give it Actions and Contents, both with read and write permissions.
- Generate the token and keep it handy.
- Click on the Settings tab then go to Secrets and variables -> Actions.
- Create a New repository secret called
WORKFLOW_TOKEN
, paste in your token from step 5 and click add. - Add a minisign private key called
MINISIGN_SIGNING_KEY
, or remove the step namedSign info.json and hashes.json
instable.template.yml
.- Make sure to put your minisign public key somewhere so people can verify archives from your index.
- Click on the Actions tab and make sure they can run.