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 0171a83
Show file tree
Hide file tree
Showing 17 changed files with 36,424 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
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 0171a83

Please sign in to comment.