Skip to content

Commit

Permalink
feat: migrate to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Sep 8, 2023
1 parent 94c4be4 commit 51bf2b8
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 36 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI

on: [push]

jobs:
build-test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: php-actions/composer@v6 # or alternative dependency management
- uses: php-actions/phpunit@v3
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Beam

[![Build Status](https://travis-ci.org/heyday/beam.png?branch=master)](https://travis-ci.org/heyday/beam)

Beam is a command line utility for deploying websites to servers. It allows you to sync files between a version control
system and a remote host, and run shell commands at fixed stages to further automate the deployment process. Beam works
best (and by default) using `rsync` over `ssh`, though it also has support for intelligent deployment through SFTP
Expand All @@ -10,11 +8,12 @@ and FTP.
## Installation

```bash
$ curl -s https://getbeam.io/installer -O; php installer
$ git clone [email protected]:heyday/beam.git
$ cd beam
$ composer install
$ php ./bin/installer
```

Note: this will create a file called `installer` and then delete it after the installation has completed.

## Updating

$ beam self-update
Expand Down
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ try {
$e->getLine()
);
exit(1);
}
}
10 changes: 5 additions & 5 deletions bin/installer
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is furnished
* to do so, subject to the following conditions:
*
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Expand Down Expand Up @@ -182,7 +182,7 @@ function checkPlatform()
}

out("All settings correct for using Beam", 'success');

return true;
}

Expand Down Expand Up @@ -311,7 +311,7 @@ function out($text, $color = null, $newLine = true)
if ($newLine) {
$format .= PHP_EOL;
}

printf($format, $text);
}

Expand All @@ -337,4 +337,4 @@ function prompt($prompt, array $options, $default = null)
} while (!in_array($response, $options));

return $response;
}
}
18 changes: 2 additions & 16 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,16 @@
"name": "heyday/beam",
"description": "A utility for deploying files to servers",
"minimum-stability": "stable",
"authors": [
{
"name": "Shane Garelja",
"email": "[email protected]"
},
{
"name": "Cam Spiers",
"email": "[email protected]"
},
{
"name": "Stephen Holdaway",
"email": "[email protected]"
}
],
"config": {
"platform": {
"php": "7.4"
"php": "8.2"
}
},
"provide": {
"ext-ssh2": "*"
},
"require": {
"php": ">=7.4",
"php": ">=8",
"symfony/console": "^5.4.9",
"symfony/process": "^5.4.8",
"symfony/options-resolver": "^5.4.3",
Expand Down

0 comments on commit 51bf2b8

Please sign in to comment.