https://github.com/icrawl/action-artifact
Upload artifacts to releases action
https://github.com/icrawl/action-artifact
action artifact github-actions release typescript upload
Last synced: over 1 year ago
JSON representation
Upload artifacts to releases action
- Host: GitHub
- URL: https://github.com/icrawl/action-artifact
- Owner: iCrawl
- License: mit
- Created: 2019-09-11T09:05:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-23T20:45:24.000Z (over 2 years ago)
- Last Synced: 2024-05-02T05:58:50.938Z (about 2 years ago)
- Topics: action, artifact, github-actions, release, typescript, upload
- Language: TypeScript
- Homepage:
- Size: 829 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# action-artifact
> Upload artifacts to releases [action](https://github.com/features/actions)
## Usage with release events
`.github/workflows/release.yml`
```yml
on:
release:
types: [published]
jobs:
artifact:
name: Upload Artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node v18
uses: actions/setup-node@v3
with:
node-version: 18
- name: yarn install
run: yarn install
- name: artifact
uses: icrawl/action-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: 'Someting*.exe'
```
## Usage workflow dispatches
`.github/workflows/manual-release.yml`
```yml
on:
workflow_dispatch:
inputs:
tag:
description: The release tag of which the assets should be updated
required: true
jobs:
artifact:
name: Upload Artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install node v18
uses: actions/setup-node@v3
with:
node-version: 12
- name: yarn install
run: yarn install
- name: artifact
uses: icrawl/action-artifact@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: 'Someting*.exe'
release-tag: ${{ github.event.inputs.tag }}
```
## Contributing
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D
## Author
**action-artifact** © [iCrawl](https://github.com/iCrawl)
Authored and maintained by iCrawl.
> GitHub [@iCrawl](https://github.com/iCrawl) · Twitter [@iCrawlToGo](https://twitter.com/iCrawlToGo)