~gpo/weblog.lol-build

780e8a24d431797f51d784a3f8ab52973cf5211d — Gil Oliveira 1 year, 9 months ago 335cf9e
Rename .secretvars to secretvars.sh because macOS makes it harder to upload hidden files
2 files changed, 5 insertions(+), 13 deletions(-)

D .secretvars
M README.md
D .secretvars => .secretvars +0 -8
@@ 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


M README.md => README.md +5 -5
@@ 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.