Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaywcjlove/github-action-upload-assets
GitHub Action to upload multiple assets to a release
https://github.com/jaywcjlove/github-action-upload-assets
actions relase upload-file
Last synced: about 1 month ago
JSON representation
GitHub Action to upload multiple assets to a release
- Host: GitHub
- URL: https://github.com/jaywcjlove/github-action-upload-assets
- Owner: jaywcjlove
- License: mit
- Created: 2024-07-28T17:30:20.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-28T19:59:36.000Z (4 months ago)
- Last Synced: 2024-10-05T15:24:56.981Z (about 1 month ago)
- Topics: actions, relase, upload-file
- Language: TypeScript
- Homepage: https://jaywcjlove.github.io/github-action-upload-assets/
- Size: 3.53 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Release Upload Assets
===[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)
[![CI](https://github.com/jaywcjlove/github-action-upload-assets/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/github-action-upload-assets/actions/workflows/ci.yml)Upload multiple assets to a release, or use GitHub Actions to upload assets to a specific release
## Example Usage
```yml
- name: Release Upload Assets
uses: jaywcjlove/github-action-upload-assets@main
if: steps.create_tag.outputs.successful == 'true'
with:
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-*"]'
```Continue on error
```yml
- name: Release Upload Assets
uses: jaywcjlove/github-action-upload-assets@main
continue-on-error: true
with:
tag: v0.3.0
asset-path: '["./target/release/sgo-*"]'
``````yml
- name: Create Tag
id: create_tag
uses: jaywcjlove/create-tag-action@main- name: Release Upload Assets
uses: jaywcjlove/github-action-upload-assets@main
continue-on-error: true
with:
tag: ${{ steps.create_tag.outputs.version }}
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.
- `tag` Specify the release tag name, for example: `v1.23.12`## Outputs
- `browser_download_urls` The URL users can navigate to in order to download the uploaded asset
## See Also
- [Github Release Changelog Generator](https://github.com/jaywcjlove/changelog-generator) A GitHub Action that compares the commit differences between two branches
- [Create Tags From](https://github.com/jaywcjlove/create-tag-action) Auto create tags from commit or package.json.
- [Github Action Contributors](https://github.com/jaywcjlove/github-action-contributors) Github action generates dynamic image URL for contributor list to display it!
- [Generated Badges](https://github.com/jaywcjlove/generated-badges) Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)
- [Create Coverage Badges](https://github.com/jaywcjlove/coverage-badges-cli) Create coverage badges from coverage reports. (no 3rd parties servers)
- [Github Action package](https://github.com/jaywcjlove/github-action-package) Read and modify the contents of `package.json`.
- [Github Action EJS](https://github.com/jaywcjlove/github-action-package) A github action to render a ejs template using github context.
- [Modify File Content](https://github.com/jaywcjlove/github-action-modify-file-content) Replace text content and submit content.## License
Licensed under the MIT License.