Merge pull request #91 from leviy/dependabot/composer/symfony/process… #90
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
release: | |
# Every published release will trigger a distribution app build which will | |
# added to the release an asset. | |
types: [published] | |
env: | |
COMPOSER_AUTH: ${{ secrets.COMPOSER_GITHUB_AUTH }} | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
# It's important to use the lowest supported PHP version when building the release-tool. | |
# Otherwise, users can be confronted with a composer platform check error when they use | |
# a PHP version that's lower than the version used here to build the release-tool. | |
php-version: '8.3' | |
- name: Composer Install | |
uses: ramsey/composer-install@v3 | |
- name: Create build | |
run: make dist | |
- name: Upload release asset | |
if: github.event_name == 'release' | |
run: gh release upload "$TAG" build/release-tool.phar | |
env: | |
TAG: ${{ github.event.release.tag_name }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |