From 780e8a24d431797f51d784a3f8ab52973cf5211d Mon Sep 17 00:00:00 2001 From: Gil Oliveira Date: Mon, 26 Dec 2022 08:26:52 +0000 Subject: [PATCH] Rename .secretvars to secretvars.sh because macOS makes it harder to upload hidden files --- .secretvars | 8 -------- README.md | 10 +++++----- 2 files changed, 5 insertions(+), 13 deletions(-) delete mode 100644 .secretvars diff --git a/.secretvars b/.secretvars deleted file mode 100644 index e256119..0000000 --- a/.secretvars +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set +x -export ADDRESS=foobar -export WEBLOG_API_KEY=insert-api-token-here -export REPO_NAME=myweblog -set -x - diff --git a/README.md b/README.md index c20817e..f50cbcb 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,12 @@ by [Gil](https://gil.omg.lol) ## Instructions 1. Download `example.build.yml`, rename it to `.build.yml` and add it to the root of your repo. -2. Download `.secretvars` and keep it somewhere safe outside your repo (we are going to put secret stuff in it). -3. In `.secretvars` edit line 4 and replace `foobar` with the portion of your address before the `.omg.lol` part -4. In `.secretvars` edit line 5 and replace `insert-api-token-here` with the API key you retrieved from [your account page](https://home.omg.lol/account#api-key) -5. In `.secretvars` edit line 6 and replace `myweblog` with your repo name (the part after the `https://git.sr.ht/~foobar/`) +2. Download `secretvars.sh` and keep it somewhere safe outside your repo (we are going to put secret stuff in it). +3. In `secretvars.sh` edit line 4 and replace `foobar` with the portion of your address before the `.omg.lol` part +4. In `secretvars.sh` edit line 5 and replace `insert-api-token-here` with the API key you retrieved from [your account page](https://home.omg.lol/account#api-key) +5. In `secretvars.sh` edit line 6 and replace `myweblog` with your repo name (the part after the `https://git.sr.ht/~foobar/`) 6. Navigate to the ["secrets" section of sourcehut builds](https://builds.sr.ht/secrets) -7. Select "File" under "Secret Type", type `~/.secretvars`, type `777`, and upload the edited `.secretvars` file. Give it a name, for your reference, and click "Add secret" +7. Select "File" under "Secret Type", type `~/.secretvars`, type `777`, and upload the edited `secretvar.sh` file. Give it a name, for your reference, and click "Add secret" 8. On the right-hand side, a new entry will appear, copy the alphanumeric identifier over the name you gave your secret on the last step. 9. Edit `.build.yml`, edit line 3 replace `YOUR_SOURCEHUT_SECRET_ID` with the identifier you copied in the last step 10. Commit and push your changes to your repo and the sourcehut builds job will automatically start. You can track its progress on the URL outputted by your console after you push your changes. -- 2.45.2