diff --git a/.github/workflows/readme-release.yml b/.github/workflows/readme-release.yml index 2d907bf..2ec8b47 100644 --- a/.github/workflows/readme-release.yml +++ b/.github/workflows/readme-release.yml @@ -149,6 +149,7 @@ jobs: printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV" printf 'RELEASE_NOTES<> "$GITHUB_ENV" - name: Create release + id: create_release if: env.VERSIONTAG_THIS != '' uses: actions/create-release@v1 env: @@ -159,3 +160,13 @@ jobs: body: ${{ env.RELEASE_NOTES }} draft: true prerelease: false + - name: Upload release asset + if: env.VERSIONTAG_THIS != '' + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./install-php-extensions + asset_name: install-php-extensions + asset_content_type: application/octet-stream diff --git a/README.md b/README.md index 0bbf1dd..6c6a7ac 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ For example, here are two `Dockerfile`s that install the GD and xdebug PHP exten ```Dockerfile FROM php:7.2-cli -ADD https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/ +ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ RUN chmod +x /usr/local/bin/install-php-extensions && sync && \ install-php-extensions gd xdebug @@ -32,7 +32,7 @@ RUN chmod +x /usr/local/bin/install-php-extensions && sync && \ ```Dockerfile FROM php:7.2-cli -COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/ +COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ RUN install-php-extensions gd xdebug ```