diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ff364c..625371e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,23 @@ GitHub's api doesn't explicitly have a way of fetching a draft release by tag name which caused draft releases to appear as separate releases when used in a build matrix. This is now fixed. +* Add support for newline-delimited asset list [#18](https://github.com/softprops/action-gh-release/pull/18) + +GitHub actions inputs don't inherently support lists of things and one might like to append a list of files to include in a release. Previously this was possible using a comma-delimited list of asset path patterns to upload. You can now provide these as a newline delimieted list for better readability + +```yaml + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: | + filea.txt + fileb.txt + filec.txt + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +``` + --- ## 0.1.1 diff --git a/README.md b/README.md index 0719dd9..4130283 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` -Below is an example of uploading more than one asset. +Below is an example of uploading more than one asset with a GitHub release ```yaml name: Main @@ -115,7 +115,7 @@ jobs: uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: |- + files: | Release.txt LICENSE env: