An open API service indexing awesome lists of open source software.

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

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)