# Release Process

## Steps

1. **Bump version** - Update version in:
   - `nis2.php` - `Version:` and `NIS2_VERSION`
   - `readme.txt` - `Stable tag:`
   - `changelog.txt` - version header
   - `README.md` - `**Version:**`
   - `AGENTS.md` - `Plugin version`

2. **Git commit** - Add, commit, and push:
   ```bash
   git add -A
   git commit -m "Release vVERSION"
   git push
   ```

3. **SVN release** - Using `bin/svn-publish.sh`:
   ```bash
   ./bin/svn-publish.sh sync
   ./bin/svn-publish.sh commit "Release vVERSION - description"
   ./bin/svn-publish.sh tag VERSION
   ```

   If SVN authentication fails, run these commands manually in your terminal:
   ```bash
   cd nis2-subversion-wordpress-org
   svn update
   svn commit -m "Release vVERSION - description"
   svn copy trunk tags/VERSION
   svn commit -m "Tagging version VERSION"
   ```

## Example (release 1.8.0)

```bash
# 1. Bump version in files
find . -name '*.php' -o -name '*.txt' -o -name '*.md' | xargs sed -i '' 's/1.7.0/1.8.0/g'

# 2. Git
git add -A
git commit -m "Release v1.8.0"
git push

# 3. SVN
./bin/svn-publish.sh sync
./bin/svn-publish.sh commit "Release v1.8.0 - Extended Logs UI and exports"
./bin/svn-publish.sh tag 1.8.0
```

## Verification

After release:
- Check WordPress.org plugin page shows correct version
- Verify download link works
- Confirm changelog displays properly
