Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add actions.yml to support GitHub Actions #63

Merged
merged 2 commits into from
Aug 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ rcpr short description
% go install github.com/Songmu/rcpr/cmd/rcpr@latest
```

## GitHub Actions

Action Songmu/rcpr@main installs rcpr binary for Linux into /usr/local/bin and run it.

```yaml
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Songmu/rcpr@main
```

## Author

[Songmu](https://github.com/Songmu)
20 changes: 20 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: rcpr
description: install and run the rcpr
inputs:
version:
description: "A version to install rcpr"
required: false
default: "v0.0.12"
runs:
using: "composite"
steps:
- run: |
DIRNAME=rcpr_${{ inputs.version }}_linux_amd64
cd /tmp
curl -sLO https://github.com/Songmu/rcpr/releases/download/${{ inputs.version }}/${DIRNAME}.tar.gz
tar zxvf ${DIRNAME}.tar.gz
sudo mv ${DIRNAME}/rcpr /usr/local/bin/rcpr
rm -rf ${DIRNAME} ${DIRNAME}.zip
cd -
rcpr
shell: bash