17 lines
1.2 KiB
Markdown
17 lines
1.2 KiB
Markdown
# annobase-fetch
|
|
|
|
Forgejo Actions step that puts the AnnoBase release named in the app settings next to the app.
|
|
|
|
```yaml
|
|
- uses: https://git.annodev.software/annodev/annobase-fetch@v1
|
|
with:
|
|
settings: Product/backend/Product.Api/appsettings.json
|
|
token: ${{ secrets.ANNOBASE_TOKEN }}
|
|
```
|
|
|
|
- `settings`: JSON file of the app, relative to the workspace. It holds `"AnnoBase": { "Version": "1.0.4" }` (backend `appsettings.json`) or `"annobase": { "version": "1.0.4" }` with `key: annobase.version` (frontend `package.json`).
|
|
- `token`: the organisation secret `ANNOBASE_TOKEN` (read-only token of the `annobase-ci` user for `annodev/anno-base`).
|
|
- `frontend-packages`: AnnoBase frontend packages to build after the download (`bun install --frozen-lockfile`, then `bun run --cwd packages/<name> build`), for example `api react map`. Empty for backend jobs.
|
|
- `destination`: default `<workspace>/AnnoBase`, which is where the `AnnoBaseBackendPath` and frontend `link:` paths of the products point.
|
|
|
|
The step reads release `v<version>` of `annodev/anno-base`, downloads `manifest.json` and the archive it names, checks the sha256 and unpacks the archive. AnnoBase itself stays private; this repository holds only the download step.
|