-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from s0/js-native
Use JS natively instead of docker
- Loading branch information
Showing
10 changed files
with
1,271 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,31 @@ jobs: | |
FOLDER: dummy | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
KNOWN_HOSTS_FILE: action/resources/known_hosts_github.com | ||
deploy-ssh-twice: | ||
name: Test deploying multiple times in one job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Dummy Data | ||
run: | | ||
mkdir dummy1 | ||
echo "foobar1" > "dummy1/baz" | ||
mkdir dummy2 | ||
echo "foobar2" > "dummy2/baz" | ||
- name: Deploy | ||
uses: ./ | ||
env: | ||
REPO: [email protected]:s0/git-publish-subdir-action-tests.git | ||
BRANCH: branch-d | ||
FOLDER: dummy1 | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
- name: Deploy | ||
uses: ./ | ||
env: | ||
REPO: [email protected]:s0/git-publish-subdir-action-tests.git | ||
BRANCH: branch-d | ||
FOLDER: dummy2 | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
deploy-locally: | ||
name: Test deploying to another branch of same repo | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test deployments | ||
name: Test branch | ||
on: push | ||
|
||
jobs: | ||
|
@@ -64,6 +64,31 @@ jobs: | |
FOLDER: dummy | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
KNOWN_HOSTS_FILE: action/resources/known_hosts_github.com | ||
deploy-ssh-twice: | ||
name: Test deploying multiple times in one job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Setup Dummy Data | ||
run: | | ||
mkdir dummy1 | ||
echo "foobar1" > "dummy1/baz" | ||
mkdir dummy2 | ||
echo "foobar2" > "dummy2/baz" | ||
- name: Deploy | ||
uses: ./ | ||
env: | ||
REPO: [email protected]:s0/git-publish-subdir-action-tests.git | ||
BRANCH: branch-d | ||
FOLDER: dummy1 | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
- name: Deploy | ||
uses: ./ | ||
env: | ||
REPO: [email protected]:s0/git-publish-subdir-action-tests.git | ||
BRANCH: branch-d | ||
FOLDER: dummy2 | ||
SSH_PRIVATE_KEY: ${{ secrets.TESTING_PRIVATE_KEY }} | ||
deploy-locally: | ||
name: Test deploying to another branch of same repo | ||
runs-on: ubuntu-latest | ||
|
@@ -79,4 +104,20 @@ jobs: | |
REPO: self | ||
BRANCH: test-branch | ||
FOLDER: dummy | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ci: | ||
name: Run Build and check output is checked-in | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.x | ||
- name: 'Build' | ||
run: | | ||
cd action | ||
npm install | ||
npm run build | ||
- name: Check no files have changes | ||
run: git diff --exit-code |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ name: 'Push git subdirectory as branch' | |
description: 'Push a subdirectory as a branch to any git repo over SSH (or to the local repo)' | ||
author: 'Sam Lanning <[email protected]>' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
using: 'node12' | ||
main: 'action/dist/index.js' | ||
branding: | ||
icon: 'upload-cloud' | ||
color: 'purple' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/node_modules | ||
/node_modules | ||
/lib |
Oops, something went wrong.