Skip to content

Commit

Permalink
Create hosty Github action
Browse files Browse the repository at this point in the history
  • Loading branch information
webNeat committed Sep 11, 2024
1 parent c52d337 commit ec801d9
Show file tree
Hide file tree
Showing 18 changed files with 36,536 additions and 22 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,4 @@ jobs:
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter hosty build
- run: pnpm run --filter hosty test ${{matrix.test-file}}

test-hosty-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run --filter hosty-action build
- run: pnpm run --filter hosty-action test
- run: pnpm run --filter hosty test ${{matrix.test-file}}
File renamed without changes.
21 changes: 21 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Hosty
description: Automate your deployments with ease
inputs:
server_ip:
description: The IP address of the server
required: true
server_user:
description: The username to use to connect to the server
required: true
ssh_private_key:
description: The private ssh key to use to connect to the server
required: true
server_user_sudo_pass:
description: The sudo password of the user on the server
required: true
handler:
description: a JS file that exports the action to perform and services to deploy/destroy.
required: true
runs:
using: node20
main: packages/hosty-action/dist/index.js
87 changes: 87 additions & 0 deletions packages/hosty-action/dist/0ce16a9a1ec3dce07535.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
"use strict";
import { require } from './deno.js'
const {
YAML,
chalk,
fs,
glob,
globby,
minimist,
nothrow,
ps,
quiet,
quote,
quotePowerShell,
tempdir,
tempfile,
tmpdir,
tmpfile,
which,
$,
ProcessOutput,
ProcessPromise,
cd,
defaults,
kill,
log,
syncProcessCwd,
useBash,
usePowerShell,
usePwsh,
within,
argv,
echo,
expBackoff,
fetch,
os,
path,
question,
retry,
sleep,
spinner,
stdin,
updateArgv
} = require('./index.cjs')
export {
YAML,
chalk,
fs,
glob,
globby,
minimist,
nothrow,
ps,
quiet,
quote,
quotePowerShell,
tempdir,
tempfile,
tmpdir,
tmpfile,
which,
$,
ProcessOutput,
ProcessPromise,
cd,
defaults,
kill,
log,
syncProcessCwd,
useBash,
usePowerShell,
usePwsh,
within,
argv,
echo,
expBackoff,
fetch,
os,
path,
question,
retry,
sleep,
spinner,
stdin,
updateArgv
}

1 change: 1 addition & 0 deletions packages/hosty-action/dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions packages/hosty-action/dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ec801d9

Please sign in to comment.