Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/packagist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Packagist

on:
push:
tags:
- 'v*'

jobs:
ci:
name: Notify Packagist
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- name: Notify
shell: bash
env:
PACKAGIST_USERNAME: ${{ secrets.PACKAGIST_USERNAME }}
PACKAGIST_API_TOKEN: ${{ secrets.PACKAGIST_API_TOKEN }}
run: |
echo "Notifying Packagist of new release: ${{ github.event.release.tag_name }}"

curl -X POST -H 'content-type:application/json' \
"https://packagist.org/api/update-package?username=$PACKAGIST_USERNAME&apiToken=$PACKAGIST_API_TOKEN" \
-d '{"repository":{"url":"https://packagist.org/packages/featurevisor/featurevisor-php"}}'
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ This SDK is compatible with [Featurevisor](https://featurevisor.com/) v2.0 proje
- [Test](#test)
- [Benchmark](#benchmark)
- [Assess distribution](#assess-distribution)
- [Development of this package](#development-of-this-package)
- [Setting up](#setting-up)
- [Running tests](#running-tests)
- [Releasing](#releasing)
- [License](#license)

## Installation
Expand Down Expand Up @@ -673,6 +677,28 @@ See: https://featurevisor.com/docs/cli/#assess-distribution

@TODO

## Development of this package

### Setting up

Clone the repository, and install the dependencies using [Composer](https://getcomposer.org/):

```
$ composer install
```

### Running tests

```
$ composer test
```

### Releasing

- Manually create a new release on [GitHub](https://github.com/featurevisor/featurevisor-php/releases)
- Tag it with a prefix of `v`, like `v1.0.0`
- GitHub Actions is set up to automatically notify [Packagist](https://packagist.org/packages/featurevisor/featurevisor-php) about the new release

## License

MIT © [Fahad Heylaal](https://fahad19.com)