Merge branch 'master' into v1-release
This commit is contained in:
commit
7fa2bd01f4
@ -20,6 +20,7 @@ This is a common use case as you will want to upload release binaries for your t
|
||||
|
||||
Simple example:
|
||||
|
||||
```yaml
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
@ -32,7 +33,7 @@ Simple example:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: hecrj/setup-rust-action@master
|
||||
- uses: hecrj/setup-rust-action@v1-release
|
||||
with:
|
||||
rust-version: stable
|
||||
- uses: actions/checkout@v1
|
||||
@ -46,9 +47,11 @@ Simple example:
|
||||
asset_name: mything
|
||||
tag: {{ github.event.ref }}
|
||||
overwrite: true
|
||||
```
|
||||
|
||||
Complex example with more operating systems:
|
||||
|
||||
```yaml
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
@ -73,7 +76,7 @@ Complex example with more operating systems:
|
||||
asset_name: mything-macos-amd64
|
||||
|
||||
steps:
|
||||
- uses: hecrj/setup-rust-action@master
|
||||
- uses: hecrj/setup-rust-action@v1-release
|
||||
with:
|
||||
rust-version: stable
|
||||
- uses: actions/checkout@v1
|
||||
@ -85,3 +88,4 @@ Complex example with more operating systems:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: target/release/${{ matrix.artifact_name }}
|
||||
asset_name: ${{ matrix.asset_name }}
|
||||
```
|
||||
|
@ -1,15 +1,22 @@
|
||||
name: 'Upload files to a GitHub release'
|
||||
description: 'Upload files to a GitHub release (cross-platform)'
|
||||
author: 'Sven-Hendrik Haase'
|
||||
branding:
|
||||
icon: archive
|
||||
color: orange
|
||||
inputs:
|
||||
repo_token:
|
||||
description: 'GitHub token'
|
||||
required: true
|
||||
file:
|
||||
description: 'Local file to upload'
|
||||
required: true
|
||||
asset_name:
|
||||
description: 'Name of the asset'
|
||||
required: true
|
||||
tag:
|
||||
description: 'Tag to use as a release'
|
||||
required: true
|
||||
overwrite:
|
||||
description: 'Overwrite the release in case it already exists'
|
||||
runs:
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "upload-release-action",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "upload-release-action",
|
||||
"version": "0.0.1",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "Upload files to a GitHub release",
|
||||
"main": "lib/main.js",
|
||||
|
Loading…
Reference in New Issue
Block a user