build(deps): bump symfony/http-client from 6.3.5 to 6.4.15 (#9) #14
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: Release Phar command | |
on: | |
push: | |
branches: [main] | |
tags: ['*'] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build PHAR binary | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Setup environment | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.2 | |
ini-values: phar.readonly=0 | |
- name: Install composer dependencies | |
uses: ramsey/composer-install@v2 | |
- name: Modify version metadata if releasing a tagged asset | |
if: startsWith(github.ref, 'refs/tags/') | |
run: | | |
sed 's/"git-commit-short"/"git"/' box.json.dist > box.json | |
- name: Build Phar binary | |
run: | | |
./scripts/install_box.sh | |
./bin/box.phar compile | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: certbot-online | |
path: ./bin/certbot-online.phar | |
publish: | |
runs-on: ubuntu-latest | |
name: Publish PHAR binary | |
needs: [build] | |
if: startsWith(github.ref, 'refs/tags/') | |
steps: | |
- name: Retrieve artefact | |
uses: actions/[email protected] | |
with: | |
name: certbot-online | |
path: . | |
- name: Upload PHAR to the release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: certbot-online.phar |