Skip to content

Commit

Permalink
Merge pull request #162 from pdsinterop/cleanup/release-docs
Browse files Browse the repository at this point in the history
Change deploy / publish instruction to *not* need a separate branch.
  • Loading branch information
ylebre authored Feb 1, 2025
2 parents 2484bde + 5bd4982 commit 9c18341
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ Once the merge request has been merged, a tag can be created, as well as a relea
- Create a `release/v0.X.X` branch
- Change anything that needs to be updated for a new release (at the least the version in `solid/appinfo/info.xml`)
- Open an MR

When the MR is merged a release version can be tagged by creating a GitHub Release

### Tagging a release
Expand All @@ -86,7 +87,23 @@ They can be installed using:
composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
```

to make sure the provided dependencies are usable in the supported PHP versions, a docker image can be used.
to make sure the provided dependencies are usable in the supported PHP versions, the preferred method is to call composer using a docker image. The verbose, but complete command for this is:

```sh
docker run \
-it \
--rm \
--volume ~/.cache/composer/:/root/composer/ \
--volume "${sourceDirectory}/solid:/app" \
--workdir /app \
php:8.0 \
bash -c 'curl -s https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& apt update \
&& apt install -y git zip \
&& COMPOSER_CACHE_DIR=/root/composer/ composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist \
&& rm /usr/local/bin/composer
```
### Creating a tarball
Expand Down

0 comments on commit 9c18341

Please sign in to comment.