svenstaro / Upload Release Action
Licence: mit
Upload files to a GitHub release
Stars: ✭ 172
Programming Languages
typescript
32286 projects
Projects that are alternatives of or similar to Upload Release Action
chrome-extension-upload
upload & publish extensions to the Chrome Web Store.
Stars: ✭ 35 (-79.65%)
Mutual labels: upload, release
Gh Action Pypi Publish
GitHub Action, for publishing distribution files to PyPI
Stars: ✭ 317 (+84.3%)
Mutual labels: upload, release
Bintray Publish
Super easy way to publish your Android and Java artifacts to bintray.
Stars: ✭ 97 (-43.6%)
Mutual labels: upload, release
Commit Analyzer
💡 semantic-release plugin to analyze commits with conventional-changelog
Stars: ✭ 146 (-15.12%)
Mutual labels: release
Semantic Release
📦🚀 Fully automated version management and package publishing
Stars: ✭ 14,364 (+8251.16%)
Mutual labels: release
Filestack React
Official React component for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Stars: ✭ 131 (-23.84%)
Mutual labels: upload
Multer Gridfs Storage
🍃 GridFS storage engine for Multer to store uploaded files directly to MongoDb
Stars: ✭ 162 (-5.81%)
Mutual labels: upload
Changelog
📘 semantic-release plugin to create or update a changelog file
Stars: ✭ 142 (-17.44%)
Mutual labels: release
Dephell
📦 🔥 Python project management. Manage packages: convert between formats, lock, install, resolve, isolate, test, build graph, show outdated, audit. Manage venvs, build package, bump version.
Stars: ✭ 1,730 (+905.81%)
Mutual labels: release
D2 Crud Plus
面向配置的crud框架,基于d2-admin的d2-crud,简化d2-crud配置,快速开发crud功能;支持远程数据字典,国际手机号校验,alioss、腾讯云cos、七牛云文件上传、头像裁剪,省市区选择,权限管理,代码生成
Stars: ✭ 154 (-10.47%)
Mutual labels: upload
Ax5ui Kernel
Javascript UI Framework - AX5UI - Kernel Module
Stars: ✭ 164 (-4.65%)
Mutual labels: upload
Upload
The file upload extension with insane intelligence for your Flarum forum.
Stars: ✭ 131 (-23.84%)
Mutual labels: upload
Github
semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues
Stars: ✭ 159 (-7.56%)
Mutual labels: release
Bilibiliupload
Upload video to bilibili under command-line interface
Stars: ✭ 141 (-18.02%)
Mutual labels: upload
Sailboat
🐍 A quick and easy way to distribute your Python projects!
Stars: ✭ 137 (-20.35%)
Mutual labels: release
Youtube
Upload a video to a single YouTube channel with Laravel 5.
Stars: ✭ 143 (-16.86%)
Mutual labels: upload
Upload files to a GitHub release
This action allows you to select which files to upload to the just-tagged release. It runs on all operating systems types offered by GitHub.
Input variables
You must provide:
-
repo_token
: Usually you'll want to set this to${{ secrets.GITHUB_TOKEN }}
. -
file
: A local file to be uploaded as the asset. -
tag
: The tag to upload into. If you want the current event's tag or branch name, use${{ github.ref }}
(therefs/tags/
andrefs/heads/
prefixes will be automatically stripped).
Optional Arguments
-
asset_name
: The name the file gets as an asset on a release. Use$tag
to include the tag name. When not provided it will default to the filename. This is not used iffile_glob
is set totrue
. -
file_glob
: If set to true, the file argument can be a glob pattern (asset_name
is ignored in this case) (Default:false
) -
overwrite
: If an asset with the same name already exists, overwrite it (Default:false
). -
prerelease
: Mark the release as a pre-release (Default:false
). -
release_name
: Explicitly set a release name. (Defaults: implicitly same astag
via GitHub API). -
body
: Content of the release text (Default:""
). -
repo_name
: Specify the name of the GitHub repository in which the GitHub release will be created, edited, and deleted. If the repository is other than the current, it is required to create a personal access token withrepo
,user
,admin:repo_hook
scopes to the foreign repository and add it as a secret. (Default: current repository).
Output variables
-
browser_download_url
: The publicly available URL of the asset.
Usage
This usage assumes you want to build on tag creations only. This is a common use case as you will want to upload release binaries for your tags.
Simple example:
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Build
run: cargo build --release
- name: Upload binaries to release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/mything
asset_name: mything
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"
Complex example with more operating systems:
name: Publish
on:
push:
tags:
- '*'
jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: mything
asset_name: mything-linux-amd64
- os: windows-latest
artifact_name: mything.exe
asset_name: mything-windows-amd64
- os: macos-latest
artifact_name: mything
asset_name: mything-macos-amd64
steps:
- uses: actions/[email protected]
- name: Build
run: cargo build --release --locked
- name: Upload binaries to release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
Example with file_glob
:
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Build
run: cargo build --release
- name: Upload binaries to release
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/my*
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Example for creating a release in a foreign repository using repo_name
:
name: Publish
on:
push:
tags:
- '*'
jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Build
run: cargo build --release
- name: Upload binaries to release
uses: svenstaro/[email protected]
with:
repo_name: owner/repository-name
# A personal access token for the GitHub repository in which the release will be created and edited.
# It is recommended to create the access token with the following scopes: `repo, user, admin:repo_hook`.
repo_token: ${{ secrets.YOUR_PERSONAL_ACCESS_TOKEN }}
file: target/release/mything
asset_name: mything
tag: ${{ github.ref }}
overwrite: true
body: "This is my release text"
Releasing
To release this Action:
- Bump version in
package.json
- Create
CHANGELOG.md
entry npm run all
git commit -am <version>
git tag -sm <version> <version>
git push --follow-tags
- Go to https://github.com/svenstaro/upload-release-action/releases and publish the new version
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].