mirror of
https://github.com/shimataro/ssh-key-action.git
synced 2025-06-19 22:52:10 +10:00

* Ignore Node files that should not be tracked The list can be fetched by `gibo dump node`. * Untrack node_modules/@actions * Cache node_modules * Don't add node_modules ins Bash scripts * Use ncc to pack dependencies * Change final product path Remove & ignore previous one (lib/main.js{,.map}) * Disable PR check using author's key Author's key is not passed to PR builds (#164) * update settings * update CHANGELOG * update build.yml Co-authored-by: Tatsunori Uchino <tats.u@live.jp>
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
# https://help.github.com/en/articles/workflow-syntax-for-github-actions
|
|
|
|
name: Ubuntu 18.04
|
|
|
|
on:
|
|
- push
|
|
|
|
jobs:
|
|
ssh:
|
|
name: Connect to github.com
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout source codes
|
|
uses: actions/checkout@v2
|
|
- name: Install SSH key
|
|
uses: ./.
|
|
with:
|
|
key: ${{ secrets.SSH_KEY }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
- name: print created files
|
|
run: ls -l ~/.ssh
|
|
- name: git clone through SSH
|
|
run: git clone git@github.com:shimataro/ssh-key-action.git tmp
|
|
ssh-with-name:
|
|
name: Connect to github.com with name and config
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout source codes
|
|
uses: actions/checkout@v2
|
|
- name: Install SSH key
|
|
uses: ./.
|
|
with:
|
|
key: ${{ secrets.SSH_KEY }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
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 -l ~/.ssh
|
|
- name: git clone through SSH
|
|
run: git clone github:shimataro/ssh-key-action.git tmp
|