The release builds and uploads with ygg/actions/static-publish, instead of deploying static-server through kara. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
27 lines
1.2 KiB
Markdown
27 lines
1.2 KiB
Markdown
# ig.mtps.pl
|
|
|
|
The photos at [ig.mtps.pl](https://ig.mtps.pl). This repo is only content and deployment; the site itself is [folio](https://git.app.ygg/mtps/folio).
|
|
|
|
## Adding a photo
|
|
|
|
1. Export it to `photos/<slug>.jpg`, about 2048px on the long edge, cropped however you like. The slug becomes the URL, `/p/<slug>`; starting it with the date (`2026-10-12-tatry`) keeps the folder sorted.
|
|
2. Optionally add `photos/<slug>.yml` with a `description`, `alt`, `taken` or `location`. The format is in [folio's README](https://git.app.ygg/mtps/folio#content).
|
|
3. Commit, then release: `git tag v1.2.3 && git push --follow-tags`.
|
|
|
|
The name, bio, link and avatar are in `profile/`.
|
|
|
|
## Preview
|
|
|
|
```sh
|
|
cd ../folio && pnpm install && FOLIO_CONTENT=../ig.mtps.pl pnpm dev
|
|
```
|
|
|
|
## Release and deploy
|
|
|
|
Pushing a `v*` tag runs `.gitea/workflows/release.yml`:
|
|
|
|
1. It builds folio at `FOLIO_REF` (set in the workflow) against this repo's content, checks that no published image has EXIF location or time, and attaches `ig.mtps.pl-<version>.tgz` to a Gitea release.
|
|
2. `ygg/actions/static-publish@v2` uploads the same build straight to the `ig.mtps.pl` bucket.
|
|
|
|
To pick up folio changes, bump `FOLIO_REF` and tag a new release.
|