Skip to content

Commit

Permalink
Merge pull request #43 from shimataro/development
Browse files Browse the repository at this point in the history
release v1.4.0
  • Loading branch information
shimataro authored Dec 22, 2019
2 parents aa7b721 + bff7726 commit 49f8235
Show file tree
Hide file tree
Showing 17 changed files with 1,119 additions and 1,047 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions

on:
push:
branches:
- master
- development
- "v*"
pull_request:
on: push
name: Build
jobs:
build:
name: Build on ${{ matrix.platform }} / Node.js v${{ matrix.nodejs }}
runs-on: ${{ matrix.platform }}
name: Build on ${{ matrix.os }} / Node.js v${{ matrix.nodejs }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
platform:
- "Windows-latest"
- "macOS-latest"
- "Ubuntu-latest"
os:
- Windows-latest
- macOS-latest
- Ubuntu-latest
nodejs:
- 12
fail-fast: false
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# https://help.github.com/en/articles/workflow-syntax-for-github-actions

on: push
name: Connection test
jobs:
ssh:
name: Connect to github.com on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- Windows-latest
- macOS-latest
- Ubuntu-latest
fail-fast: false
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@development
with:
private-key: ${{ secrets.SSH_KEY }}
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
- name: print created files
run: ls ~/.ssh
- name: git clone through SSH
run: git clone [email protected]:shimataro/ssh-key-action.git tmp
ssh-with-name:
name: Connect to github.com on ${{ matrix.os }} with name
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- Windows-latest
- macOS-latest
- Ubuntu-latest
fail-fast: false
steps:
- name: Install SSH key
uses: shimataro/ssh-key-action@development
with:
private-key: ${{ secrets.SSH_KEY }}
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
name: ssh_key_name # optional
config: | # optional
Host github
Hostname github.com
User git
IdentityFile ~/.ssh/ssh_key_name
- name: print created files
run: ls ~/.ssh
- name: git clone through SSH
run: git clone github:shimataro/ssh-key-action.git tmp
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.4.0]

### Added

* `config` option

## [1.3.0]

### Added
Expand Down Expand Up @@ -35,7 +41,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

* First release.

[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.3.0...HEAD
[Unreleased]: https://github.com/shimataro/ssh-key-action/compare/v1.4.0...HEAD
[1.4.0]: https://github.com/shimataro/ssh-key-action/compare/v1.3.0...v1.4.0
[1.3.0]: https://github.com/shimataro/ssh-key-action/compare/v1.2.0...v1.3.0
[1.2.0]: https://github.com/shimataro/ssh-key-action/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/shimataro/ssh-key-action/compare/v1.0.0...v1.1.0
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Install SSH key

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

Expand All @@ -21,7 +22,8 @@ steps:
private-key: ${{ secrets.SSH_KEY }}
public-key: ${{ secrets.SSH_KEY_PUBLIC }}
name: id_rsa # optional
known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional
known-hosts: ${{ secrets.KNOWN_HOSTS }} # known_hosts; optional
config: ${{ secrets.CONFIG }} # ssh_config; optional
- name: Install packages
run: apt install openssh-client rsync
- name: rsync over ssh
Expand All @@ -40,6 +42,8 @@ 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-connection-test]: https://github.com/shimataro/ssh-key-action/workflows/Connection%20test/badge.svg
[link-connection-test]: 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
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ inputs:
description: "public keys of SSH servers"
required: false
default: ""
config:
description: "SSH config"
required: false
default: ""
runs:
using: "node12"
main: "lib/main.js"
5 changes: 5 additions & 0 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.

Loading

0 comments on commit 49f8235

Please sign in to comment.