https://github.com/roang-zero1/github-upload-release-artifacts-action
Upload artifacts to a GitHub release
https://github.com/roang-zero1/github-upload-release-artifacts-action
action artifact-management ci continuous-integration release-automation
Last synced: 14 days ago
JSON representation
Upload artifacts to a GitHub release
- Host: GitHub
- URL: https://github.com/roang-zero1/github-upload-release-artifacts-action
- Owner: Roang-zero1
- License: mit
- Created: 2019-06-14T01:56:32.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-10-29T20:10:26.000Z (over 2 years ago)
- Last Synced: 2024-10-12T21:34:22.050Z (7 months ago)
- Topics: action, artifact-management, ci, continuous-integration, release-automation
- Language: Shell
- Homepage:
- Size: 19.5 KB
- Stars: 18
- Watchers: 2
- Forks: 9
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Action for Uploading Release Artifacts
This action will upload all paths passed as arguments as artifacts to an existing release.
This action should be triggered with a tag after a release for this tag has been created.Arguments can either be file or directory paths, for directories all contained files will be uploaded.
## Usage
A sample workflow would be:
```yaml
on: push
name: Build & Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: build
run: |
./build.sh
release:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@master
- name: Create release
uses: Roang-zero1/github-create-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload release artifacts
uses: Roang-zero1/github-upload-release-artifacts-action@v2
with:
args: "dist/bin/ dist/shell/compiled.sh"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```## Secrets
* `GITHUB_TOKEN` Provided by the GitHub action
## Acknowledgments
Idea based on [fnkr/github-action-ghr](https://github.com/fnkr/github-action-ghr)