File tree 10 files changed +1271
-89
lines changed
10 files changed +1271
-89
lines changed Original file line number Diff line number Diff line change 66
66
FOLDER : dummy
67
67
SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
68
68
KNOWN_HOSTS_FILE : action/resources/known_hosts_github.com
69
+ deploy-ssh-twice :
70
+ name : Test deploying multiple times in one job
71
+ runs-on : ubuntu-latest
72
+ steps :
73
+ - uses : actions/checkout@master
74
+ - name : Setup Dummy Data
75
+ run : |
76
+ mkdir dummy1
77
+ echo "foobar1" > "dummy1/baz"
78
+ mkdir dummy2
79
+ echo "foobar2" > "dummy2/baz"
80
+ - name : Deploy
81
+ uses : ./
82
+ env :
83
+ REPO : git@github.com:s0/git-publish-subdir-action-tests.git
84
+ BRANCH : branch-d
85
+ FOLDER : dummy1
86
+ SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
87
+ - name : Deploy
88
+ uses : ./
89
+ env :
90
+ REPO : git@github.com:s0/git-publish-subdir-action-tests.git
91
+ BRANCH : branch-d
92
+ FOLDER : dummy2
93
+ SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
69
94
deploy-locally :
70
95
name : Test deploying to another branch of same repo
71
96
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
- name : Test deployments
1
+ name : Test branch
2
2
on : push
3
3
4
4
jobs :
64
64
FOLDER : dummy
65
65
SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
66
66
KNOWN_HOSTS_FILE : action/resources/known_hosts_github.com
67
+ deploy-ssh-twice :
68
+ name : Test deploying multiple times in one job
69
+ runs-on : ubuntu-latest
70
+ steps :
71
+ - uses : actions/checkout@master
72
+ - name : Setup Dummy Data
73
+ run : |
74
+ mkdir dummy1
75
+ echo "foobar1" > "dummy1/baz"
76
+ mkdir dummy2
77
+ echo "foobar2" > "dummy2/baz"
78
+ - name : Deploy
79
+ uses : ./
80
+ env :
81
+ REPO : git@github.com:s0/git-publish-subdir-action-tests.git
82
+ BRANCH : branch-d
83
+ FOLDER : dummy1
84
+ SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
85
+ - name : Deploy
86
+ uses : ./
87
+ env :
88
+ REPO : git@github.com:s0/git-publish-subdir-action-tests.git
89
+ BRANCH : branch-d
90
+ FOLDER : dummy2
91
+ SSH_PRIVATE_KEY : ${{ secrets.TESTING_PRIVATE_KEY }}
67
92
deploy-locally :
68
93
name : Test deploying to another branch of same repo
69
94
runs-on : ubuntu-latest
@@ -79,4 +104,20 @@ jobs:
79
104
REPO : self
80
105
BRANCH : test-branch
81
106
FOLDER : dummy
82
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
107
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108
+ ci :
109
+ name : Run Build and check output is checked-in
110
+ runs-on : ubuntu-latest
111
+ steps :
112
+ - uses : actions/checkout@master
113
+ - name : Use Node.js
114
+ uses : actions/setup-node@v1
115
+ with :
116
+ node-version : 10.x
117
+ - name : ' Build'
118
+ run : |
119
+ cd action
120
+ npm install
121
+ npm run build
122
+ - name : Check no files have changes
123
+ run : git diff --exit-code
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ name: 'Push git subdirectory as branch'
3
3
description : ' Push a subdirectory as a branch to any git repo over SSH (or to the local repo)'
4
4
author : ' Sam Lanning <sam@samlanning.com>'
5
5
runs :
6
- using : ' docker '
7
- image : ' Dockerfile '
6
+ using : ' node12 '
7
+ main : ' action/dist/index.js '
8
8
branding :
9
9
icon : ' upload-cloud'
10
10
color : ' purple'
Original file line number Diff line number Diff line change 1
- /node_modules
1
+ /node_modules
2
+ /lib
You can’t perform that action at this time.
0 commit comments