Skip to content

Commit

Permalink
doc: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jul 28, 2024
1 parent 545733f commit 1c0fc35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
${{ steps.changelog.outputs.changelog }}
```yml
- name: Print Folder Tree
- name: Release Upload Assets
uses: jaywcjlove/github-action-upload-assets@main
with:
asset-path: test.*
Expand All @@ -93,7 +93,9 @@ jobs:
- run: echo "Hello World" > test.txt
- name: Compress test Example.
run: zip -r -y test.zip test.txt -x "node_modules/*"


- run: echo "version - ${{ steps.create_tag.outputs.version }}"

- name: Release Upload Assets
# uses: jaywcjlove/github-action-upload-assets@main
# if: steps.create_tag.outputs.successful == 'true'
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@ GitHub Action to upload multiple assets to a release
asset-path: '["./target/release/sgo-*"]'
```
Upload a file to a specified tag
```yml
- name: Release Upload Assets
uses: jaywcjlove/github-action-upload-assets@main
if: steps.create_tag.outputs.successful == 'true'
with:
tag: v0.3.0
asset-path: '["./target/release/sgo-*"]'
```
## Inputs
- `asset-path` The paths to the assets you want to upload as a JSON array. You can use a [glob](https://www.npmjs.com/package/glob) pattern.
Expand Down

0 comments on commit 1c0fc35

Please sign in to comment.