update README with file_glob instructions
This commit is contained in:
parent
cb3a639a0c
commit
056edc7bfb
32
README.md
32
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
|
||||
```
|
Loading…
Reference in New Issue
Block a user