-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from gregoranders/development
0.0.6 Release
- Loading branch information
Showing
7 changed files
with
61 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ This action uploads an asset to a release, so your workflow can access it. | |
[![License][license-image]][license-url] | ||
[![Issues][issues-image]][issues-url] | ||
|
||
|
||
[![Master Build][master-build-image]][master-url] [![Master Coverage][master-coveralls-image]][master-coveralls-url] [![Master Version][master-version-image]][master-version-url] | ||
|
||
[![Development Build][development-build-image]][development-url] [![Development Coverage][development-coveralls-image]][development-coveralls-url] [![Development Version][development-version-image]][development-version-url] | ||
|
@@ -20,14 +19,15 @@ This action uploads an asset to a release, so your workflow can access it. | |
[![Main Language](https://img.shields.io/github/languages/top/gregoranders/nodejs-upload-asset)][code-metric-url] [![Languages](https://img.shields.io/github/languages/count/gregoranders/nodejs-upload-asset)][code-metric-url] [![Code Size](https://img.shields.io/github/languages/code-size/gregoranders/nodejs-upload-asset)][code-metric-url] [![Repo-Size](https://img.shields.io/github/repo-size/gregoranders/nodejs-upload-asset)][code-metric-url] | ||
|
||
## Usage | ||
|
||
```YML | ||
... | ||
- name: nodejs project information | ||
id: projectinfo | ||
uses: gregoranders/[email protected].5 | ||
uses: gregoranders/[email protected].6 | ||
- name: create release | ||
id: createrelease | ||
uses: gregoranders/[email protected].5 | ||
uses: gregoranders/[email protected].6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
|
@@ -36,21 +36,22 @@ This action uploads an asset to a release, so your workflow can access it. | |
target: ${{ github.ref }} | ||
- name: upload asset | ||
id: uploadasset | ||
uses: gregoranders/[email protected].5 | ||
uses: gregoranders/[email protected].6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
url: ${{ steps.createrelease.outputs.upload_url }} | ||
id: ${{ steps.createrelease.outputs.id }} | ||
path: package.json | ||
name: '${{ steps.projectinfo.outputs.name }} - ${{ steps.projectinfo.outputs.version }}' | ||
... | ||
``` | ||
|
||
#### Inputs/Outputs | ||
|
||
```YML | ||
inputs: | ||
url: | ||
description: 'Release Asset Upload Url' | ||
id: | ||
description: 'Release Id' | ||
required: true | ||
path: | ||
description: 'Release Asset Path' | ||
|
@@ -73,11 +74,13 @@ outputs: | |
## Development | ||
### Clone repository | ||
```SH | ||
git clone https://github.com/gregoranders/nodejs-upload-asset | ||
``` | ||
|
||
### Install dependencies | ||
|
||
```SH | ||
npm install | ||
``` | ||
|
@@ -91,16 +94,19 @@ npm run build | |
### Testing | ||
|
||
#### Test using [Jest](https://jestjs.io/) | ||
|
||
```SH | ||
npm test | ||
``` | ||
|
||
### Run | ||
|
||
```SH | ||
npm start | ||
``` | ||
|
||
### Clear | ||
|
||
```SH | ||
npm run clear | ||
``` | ||
|
@@ -110,38 +116,27 @@ npm run clear | |
[development-url]: https://github.com/gregoranders/nodejs-upload-asset/tree/development | ||
[repository-url]: https://github.com/gregoranders/nodejs-upload-asset | ||
[code-metric-url]: https://github.com/gregoranders/nodejs-upload-asset/search?l=TypeScript | ||
|
||
[travis-url]: https://travis-ci.org/gregoranders/nodejs-upload-asset | ||
[travis-image]: https://travis-ci.org/gregoranders/nodejs-upload-asset.svg?branch=master | ||
|
||
[daviddm-url]: https://david-dm.org/gregoranders/nodejs-upload-asset | ||
[daviddm-image]: https://david-dm.org/gregoranders/nodejs-upload-asset.svg?branch=master | ||
|
||
[license-url]: https://github.com/gregoranders/nodejs-upload-asset/blob/master/LICENSE | ||
[license-image]: https://img.shields.io/github/license/gregoranders/nodejs-upload-asset.svg | ||
|
||
[master-version-url]: https://github.com/gregoranders/nodejs-upload-asset/blob/master/package.json | ||
[master-version-image]: https://img.shields.io/github/package-json/v/gregoranders/nodejs-upload-asset/master | ||
|
||
[development-version-url]: https://github.com/gregoranders/nodejs-upload-asset/blob/development/package.json | ||
[development-version-image]: https://img.shields.io/github/package-json/v/gregoranders/nodejs-upload-asset/development | ||
|
||
[issues-url]: https://github.com/gregoranders/nodejs-upload-asset/issues | ||
[issues-image]: https://img.shields.io/github/issues-raw/gregoranders/nodejs-upload-asset.svg | ||
|
||
[master-build-image]: https://github.com/gregoranders/nodejs-upload-asset/workflows/Master%20CI/badge.svg | ||
[development-build-image]: https://github.com/gregoranders/nodejs-upload-asset/workflows/Development%20CI/badge.svg | ||
|
||
[master-coveralls-url]: https://coveralls.io/github/gregoranders/nodejs-upload-asset?branch=master | ||
[master-coveralls-image]: https://img.shields.io/coveralls/github/gregoranders/nodejs-upload-asset/master | ||
[development-coveralls-image]: https://img.shields.io/coveralls/github/gregoranders/nodejs-upload-asset/development | ||
[development-coveralls-url]: https://coveralls.io/github/gregoranders/nodejs-upload-asset?branch=development | ||
|
||
[code-maintainability-url]: https://codeclimate.com/github/gregoranders/nodejs-upload-asset/maintainability | ||
[code-maintainability-image]: https://img.shields.io/codeclimate/maintainability/gregoranders/nodejs-upload-asset | ||
|
||
[code-issues-url]: https://codeclimate.com/github/gregoranders/nodejs-upload-asset/maintainability | ||
[code-issues-image]: https://img.shields.io/codeclimate/issues/gregoranders/nodejs-upload-asset | ||
|
||
[code-tech-debt-url]: https://codeclimate.com/github/gregoranders/nodejs-upload-asset/maintainability | ||
[code-tech-debt-image]: https://img.shields.io/codeclimate/tech-debt/gregoranders/nodejs-upload-asset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: 'NodeJS Upload Asset' | |
description: 'Upload asset' | ||
author: 'Gregor Anders <[email protected]>' | ||
inputs: | ||
url: | ||
description: 'Release Asset Upload Url' | ||
id: | ||
description: 'Release ID' | ||
required: true | ||
path: | ||
description: 'Release Asset Path' | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters