From 056edc7bfb95873e468aeeefc81e67f363487888 Mon Sep 17 00:00:00 2001 From: Sandi Chakravarty Date: Tue, 8 Oct 2019 14:13:21 -0700 Subject: [PATCH] update README with file_glob instructions --- README.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/README.md b/README.md index 6ebbdf2..8c31022 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,10 @@ You must provide: - `tag`: The tag to uploaded into. If you want the current event's tag, use `${{ github.ref }}` - `overwrite`: If an asset with the same name already exists, overwrite it. +Optional Arguments + + - `file_glob`: If set to true, the file argument can be a glob pattern (asset_name is ignored in this case) + ## Usage This usage assumes you want to build on tag creations only. @@ -92,3 +96,31 @@ jobs: asset_name: ${{ matrix.asset_name }} tag: ${{ github.ref }} ``` + +Example with file_glob: +```yaml +name: Publish +on: + push: + tags: + - '*' +jobs: + build: + name: Publish binaries + runs-on: ubuntu-latest + steps: + - uses: hecrj/setup-rust-action@v1-release + with: + rust-version: stable + - uses: actions/checkout@v1 + - name: Build + run: cargo build --release + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: target/release/my* + tag: ${{ github.ref }} + overwrite: true + file_glob: true +``` \ No newline at end of file