Skip to content

Commit

Permalink
Merge pull request #12 from shimataro/development
Browse files Browse the repository at this point in the history
release v1.1.0
  • Loading branch information
shimataro authored Sep 18, 2019
2 parents 44952b1 + 6feada4 commit 34e7122
Show file tree
Hide file tree
Showing 20 changed files with 661 additions and 526 deletions.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# http://editorconfig.org/
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties
root = true


# recommended settings; DO NOT CHANGE!
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true


# common settings
[*]
indent_style = tab
indent_size = 4
tab_width = 4
max_line_length = off

quote_type = double
curly_bracket_next_line = true
spaces_around_operators = true
spaces_around_brackets = none
indent_brace_style = allman


# JSON/YAML
[*.{json,babelrc,code-workspace,yml,yaml}]
indent_style = space
indent_size = 2
tab_width = 2


# markdown
[*.md]
indent_style = space
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# https://help.github.com/ja/articles/workflow-syntax-for-github-actions

on:
push:
branches:
- master
- develop
pull_request:
name: Build
jobs:
build:
name: Build on ${{ matrix.platform }} / Node.js v${{ matrix.nodejs }}
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform:
- "Windows-latest"
- "macOS-latest"
- "Ubuntu-latest"
nodejs:
- 12
steps:
- name: Turn off auto-crlf
run: git config --global core.autocrlf false
- name: Checkout source codes
uses: actions/checkout@v1
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.nodejs }}
- name: Build
run: npm run build
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.1.0]

### Others

* Support Visual Studio Code officially.
* Use GitHub Actions for build test.

## [1.0.0]

* First release.

[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.0.0...HEAD
[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.1.0...HEAD
[1.1.0]: https://github.com/shimataro/ssh-key-action/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/shimataro/ssh-key-action/compare/8deacc95b1ee5732107e56baa4c8aac4c386ef7e...v1.0.0
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Install SSH key

[![Build][image-build]][link-build]
[![Release][image-release]][link-release]
[![License][image-license]][link-license]

This action installs SSH key into `~/.ssh`.

Useful for `rsync` over SSH in deployment script.
Expand All @@ -16,7 +20,7 @@ steps:
with:
private-key: ${{ secret.SSH_KEY }}
public-key: ${{ secret.SSH_KEY_PUBLIC }}
name: 'id_rsa' # optional
name: id_rsa # optional
- name: Install packages
run: apt install openssh-client rsync
- name: rsync over ssh
Expand All @@ -28,3 +32,14 @@ See [Workflow syntax for GitHub Actions](https://help.github.com/en/articles/wor
## License
The scripts and documentation in this project are released under the [MIT License](LICENSE)
## Changelog
See [CHANGELOG.md](CHANGELOG.md).
[image-build]: https://github.com/shimataro/ssh-key-action/workflows/Build/badge.svg
[link-build]: https://github.com/shimataro/ssh-key-action
[image-release]: https://img.shields.io/github/release/shimataro/ssh-key-action.svg
[link-release]: https://github.com/shimataro/ssh-key-action/releases
[image-license]: https://img.shields.io/github/license/shimataro/ssh-key-action.svg
[link-license]: ./LICENSE
22 changes: 11 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: 'Install SSH Key'
description: 'Install SSH key to ~/.ssh'
author: 'shimataro'
name: "Install SSH Key"
description: "Install SSH key to ~/.ssh"
author: "shimataro"
branding:
icon: 'terminal'
color: 'gray-dark'
icon: "terminal"
color: "gray-dark"
inputs:
private-key:
description: 'private SSH key'
description: "private SSH key"
required: true
public-key:
description: 'public SSH key'
description: "public SSH key"
required: true
name:
description: 'SSH key file name (default: id_rsa)'
default: 'id_rsa'
description: "SSH key file name (default: id_rsa)"
default: "id_rsa"
runs:
using: 'node12'
main: 'lib/main.js'
using: "node12"
main: "lib/main.js"
17 changes: 10 additions & 7 deletions lib/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions node_modules/@actions/core/LICENSE.md

This file was deleted.

Loading

0 comments on commit 34e7122

Please sign in to comment.