From d2d616a0aed7c0a943cbdb2f9d087e5c894c7da5 Mon Sep 17 00:00:00 2001 From: Yakir Luc Gagnon <12.yakir@gmail.com> Date: Sat, 21 Nov 2020 12:59:52 +0100 Subject: [PATCH 1/2] Update FAQ.md added an explanation about how to authenticate with a github --- docs/src/FAQ.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/FAQ.md b/docs/src/FAQ.md index 11d2e1537..fc8751209 100644 --- a/docs/src/FAQ.md +++ b/docs/src/FAQ.md @@ -114,3 +114,11 @@ The list of sources is a vector of [`BinaryBuilder.AbstractSource`](@ref)s. Wha replacing `http://example.org/file.tar.gz` with the actual URL of the file you want to download. * For a [`GitSource`](@ref), the hash is the 40-character SHA1 hash of the revision you want to checkout. For reproducibility you must indicate a specific revision, and not a branch or tag name, which are moving targets. + +### How to authenticate with a github token when publishing locally? + +1. Get and copy a github token with access to public repositories (check in `public_repo`) +2. Set the `GITHUB_TOKEN` environment variable to the copied token and run the Julia command as normal ([see this section for more details about publishing locally](#can_i_publish_a_jll_package_locally_without_going_through_yggdrasil?)): +```shell +GITHUB_TOKEN="<40 characters of numbers and letters>" julia ... build_tarballs.jl ... --deploy=... +``` From b3b0ce0fcdcf10cca3a571a084719ec7c5643010 Mon Sep 17 00:00:00 2001 From: Yakir Luc Gagnon <12.yakir@gmail.com> Date: Sat, 21 Nov 2020 13:02:30 +0100 Subject: [PATCH 2/2] Update FAQ.md fixed the broken link. --- docs/src/FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/FAQ.md b/docs/src/FAQ.md index fc8751209..ae63b6884 100644 --- a/docs/src/FAQ.md +++ b/docs/src/FAQ.md @@ -118,7 +118,7 @@ The list of sources is a vector of [`BinaryBuilder.AbstractSource`](@ref)s. Wha ### How to authenticate with a github token when publishing locally? 1. Get and copy a github token with access to public repositories (check in `public_repo`) -2. Set the `GITHUB_TOKEN` environment variable to the copied token and run the Julia command as normal ([see this section for more details about publishing locally](#can_i_publish_a_jll_package_locally_without_going_through_yggdrasil?)): +2. Set the `GITHUB_TOKEN` environment variable to the copied token and run the Julia command as normal ([see this section for more details about publishing locally](#Can-I-publish-a-JLL-package-locally-without-going-through-Yggdrasil?)): ```shell GITHUB_TOKEN="<40 characters of numbers and letters>" julia ... build_tarballs.jl ... --deploy=... ```