A => LICENSE +7 -0
@@ 1,7 @@ MIT No Attribution © 2022 Gil Oliveira Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
A => README.md +25 -0
@@ 1,25 @@ # weblog.lol sourcehut integration 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/`) 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" 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. ## License The code in this repository is made available under an MIT No Attribution license. You can read it in [`LICENSE`](LICENSE). TL;DR: Do whatever you want with it, no attribution required (although is always apprecciated :D). You're on your own though, no warranty/support here. Improvements are always welcome!
A => example.build.yml +12 -0
@@ 1,12 @@ image: ubuntu/lts secrets: - YOUR_SOURCEHUT_SECRET_ID packages: - curl - php tasks: - deploy: | cd $REPO_NAME wget -O weblog-import.php https://api.omg.lol/address/$ADDRESS/weblog/github-action php -f weblog-import.php $ADDRESS $WEBLOG_API_KEY