Skip to content

Commit

Permalink
Merge pull request #3 from s0/js-native
Browse files Browse the repository at this point in the history
Use JS natively instead of docker
  • Loading branch information
s0 authored Oct 20, 2019
2 parents 0f67cab + f9edbd4 commit 09f252a
Show file tree
Hide file tree
Showing 10 changed files with 1,271 additions and 89 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
45 changes: 43 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test deployments
name: Test branch
on: push

jobs:
Expand Down Expand Up @@ -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
Expand All @@ -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
21 changes: 0 additions & 21 deletions Dockerfile

This file was deleted.

4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 2 additions & 1 deletion action/.gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/node_modules
/node_modules
/lib
Loading

0 comments on commit 09f252a

Please sign in to comment.