chore: add README.md for plugin documentation and release workflow
This commit is contained in:
33
README.md
33
README.md
@@ -0,0 +1,33 @@
|
|||||||
|
Siti Delivery Time Notices
|
||||||
|
==========================
|
||||||
|
|
||||||
|
WordPress/WooCommerce plugin dat levertermijnen toont op productpagina's.
|
||||||
|
|
||||||
|
Release workflow
|
||||||
|
----------------
|
||||||
|
|
||||||
|
De centrale workflow `.gitea/workflows/release.yml` hergebruikt `SitiWeb/ci-workflows/.gitea/workflows/wp-plugin-release.yml` en verwacht een aantal repository secrets/vars.
|
||||||
|
|
||||||
|
### Verplichte secret
|
||||||
|
|
||||||
|
- `RELEASE_TOKEN`: personal access token op `git.robert.ooo` met minimaal `repository`/`api` toegang. Wordt gebruikt om tags, releases en assets via de Gitea API aan te maken. Voeg hem toe via **Settings → Secrets → New secret** en geef exact deze naam.
|
||||||
|
|
||||||
|
### Optionele variables
|
||||||
|
|
||||||
|
- `RELEASE_SERVER_URL`: alleen nodig wanneer de Gitea server-URL niet automatisch kan worden afgeleid. Waarde lijkt `https://git.robert.ooo` te moeten zijn.
|
||||||
|
- `RELEASE_REPOSITORY`: `owner/repo` string, bijvoorbeeld `roberto/siti-delivery-time-notices`.
|
||||||
|
|
||||||
|
### Lokale runs met `act`
|
||||||
|
|
||||||
|
Secrets van de server worden lokaal niet automatisch ingeladen. Gebruik `act` daarom als volgt:
|
||||||
|
|
||||||
|
```
|
||||||
|
act workflow_dispatch \
|
||||||
|
-s RELEASE_TOKEN=glpat-xxxxxxxx \
|
||||||
|
-s RELEASE_SERVER_URL=https://git.robert.ooo \
|
||||||
|
-s RELEASE_REPOSITORY=roberto/siti-delivery-time-notices
|
||||||
|
```
|
||||||
|
|
||||||
|
Een alternatief is een `.secrets` file naast de repo met bovenstaande sleutels.
|
||||||
|
|
||||||
|
Zonder `RELEASE_TOKEN` breekt de release-stap af en worden er geen tag of release aangemaakt.
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
if ( ! defined( 'ABSPATH' ) ) {
|
if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
define('SITI_DELIVERY_TIME_NOTICES_SLUG', 'siti-delivery-time-notices' );
|
define('SITI_DELIVERY_TIME_NOTICES_SLUG', 'siti-delivery-time-notices' );
|
||||||
|
|
||||||
if ( ! defined( 'SITI_DELIVERY_TIME_NOTICES_FILE' ) ) {
|
if ( ! defined( 'SITI_DELIVERY_TIME_NOTICES_FILE' ) ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user