From a831a51a4de27e40fd246fa159d736c5d12bdecb Mon Sep 17 00:00:00 2001 From: shimataro Date: Tue, 31 Dec 2019 10:25:02 +0900 Subject: [PATCH] * use different actions for verify --- .github/workflows/verify-on-linux.yml | 39 +++++++++++++++++++ .github/workflows/verify-on-macos.yml | 39 +++++++++++++++++++ .github/workflows/verify-on-windows.yml | 39 +++++++++++++++++++ .../workflows/{verify.yml => verify.yml.bak} | 0 4 files changed, 117 insertions(+) create mode 100644 .github/workflows/verify-on-linux.yml create mode 100644 .github/workflows/verify-on-macos.yml create mode 100644 .github/workflows/verify-on-windows.yml rename .github/workflows/{verify.yml => verify.yml.bak} (100%) diff --git a/.github/workflows/verify-on-linux.yml b/.github/workflows/verify-on-linux.yml new file mode 100644 index 0000000..14b326d --- /dev/null +++ b/.github/workflows/verify-on-linux.yml @@ -0,0 +1,39 @@ +# https://help.github.com/en/articles/workflow-syntax-for-github-actions + +on: push +name: Linux +jobs: + ssh: + name: Connect to github.com + runs-on: ubuntu-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + with: + private-key: ${{ secrets.SSH_KEY }} + public-key: ${{ secrets.SSH_KEY_PUBLIC }} + known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional + - 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-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + 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 -l ~/.ssh + - name: git clone through SSH + run: git clone github:shimataro/ssh-key-action.git tmp diff --git a/.github/workflows/verify-on-macos.yml b/.github/workflows/verify-on-macos.yml new file mode 100644 index 0000000..cc2420d --- /dev/null +++ b/.github/workflows/verify-on-macos.yml @@ -0,0 +1,39 @@ +# https://help.github.com/en/articles/workflow-syntax-for-github-actions + +on: push +name: macOS +jobs: + ssh: + name: Connect to github.com + runs-on: macos-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + with: + private-key: ${{ secrets.SSH_KEY }} + public-key: ${{ secrets.SSH_KEY_PUBLIC }} + known-hosts: ${{ secrets.KNOWN_HOSTS }} # optional + - 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: macos-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + 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 -l ~/.ssh + - name: git clone through SSH + run: git clone github:shimataro/ssh-key-action.git tmp diff --git a/.github/workflows/verify-on-windows.yml b/.github/workflows/verify-on-windows.yml new file mode 100644 index 0000000..5db775d --- /dev/null +++ b/.github/workflows/verify-on-windows.yml @@ -0,0 +1,39 @@ +# https://help.github.com/en/articles/workflow-syntax-for-github-actions + +on: push +name: Windows +jobs: + ssh: + name: Connect to github.com + runs-on: windows-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + 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 git@github.com:shimataro/ssh-key-action.git tmp + ssh-with-name: + name: Connect to github.com with name and config + runs-on: windows-latest + steps: + - name: Install SSH key + uses: shimataro/ssh-key-action@HEAD + 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 diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml.bak similarity index 100% rename from .github/workflows/verify.yml rename to .github/workflows/verify.yml.bak