https://github.com/eggplants/gemini-template
Publish Gemtext (markup language for gemini protocol) to sourcehut automatically (gemini:// + https://)
https://github.com/eggplants/gemini-template
Last synced: 7 months ago
JSON representation
Publish Gemtext (markup language for gemini protocol) to sourcehut automatically (gemini:// + https://)
- Host: GitHub
- URL: https://github.com/eggplants/gemini-template
- Owner: eggplants
- Created: 2021-09-17T02:12:29.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-08-06T17:32:37.000Z (about 4 years ago)
- Last Synced: 2025-02-06T06:44:23.004Z (over 1 year ago)
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gemini-template
[See my sample repo](https://github.com/eggplants/gemini)
## WHAT?
- Publish [Gemtext](https://gemini.circumlunar.space/docs/gemtext.gmi) to sourcehut automatically:
- `gemini://${USERNAME}.srht.site`
- `https://${USERNAME}.srht.site`
## Step
1. [Fork me](https://github.com/eggplants/gemini/fork)
2. [Register sourcehut](https://meta.sr.ht/register)
3. [Generate OAuth2.0 Personal Token](https://meta.sr.ht/oauth2/personal-token)
4. Set repository's Secrets in Settings (see [docs](https://docs.github.com/en/actions/reference/encrypted-secrets#creating-encrypted-secrets-for-a-repository))
- `SH_USER`: Username of sourcehut
- `SH_TOKEN`: Generated PAT
5. Modified gmi docs and director(ies) in `./pub/gmi/`
6. CI works by pushing your commits to repo or running [manually](https://docs.github.com/en/actions/managing-workflow-runs/manually-running-a-workflow#running-a-workflow)
7. Deployed!
## Badges
```markdown
[](https://github.com/{name}/{repo}/actions/workflows/deploy.yml)
[](https://{name}.srht.site)
```