Skip to content

Commit c7ca129

Browse files
Move domain
1 parent 766a110 commit c7ca129

File tree

5 files changed

+51
-6
lines changed

5 files changed

+51
-6
lines changed

.github/workflows/ci-prod.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
on:
2+
workflow_dispatch:
3+
push:
4+
branches:
5+
- main
6+
name: CI:test
7+
jobs:
8+
9+
deploy-test:
10+
name: Deploy to hatt.style
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: '8.0'
17+
- name: Get composer cache directory
18+
id: composer-cache
19+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
20+
- name: Cache dependencies
21+
uses: actions/cache@v1
22+
with:
23+
path: ${{ steps.composer-cache.outputs.dir }}
24+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
25+
restore-keys: ${{ runner.os }}-composer-
26+
- name: Install dependencies
27+
run: composer install --no-dev --prefer-dist
28+
# - name: Get npm cache directory
29+
# id: npm-cache
30+
# run: |
31+
# echo "::set-output name=dir::$(npm config get cache)"
32+
# - uses: actions/cache@v1
33+
# with:
34+
# path: ${{ steps.npm-cache.outputs.dir }}
35+
# key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+
# restore-keys: |
37+
# ${{ runner.os }}-node-
38+
# - name: Install JavaScript dependencies
39+
# run: npm install
40+
- name: Deploy over FTPS
41+
env:
42+
USERNAME: ${{ secrets.DEPLOY_USERNAME }}
43+
PASSWORD: ${{ secrets.DEPLOY_PASSWORD }}
44+
run: php ./Deploy.php --environment=prod --username="$USERNAME"

.github/workflows/ci-test.yml .github/workflows/ci-staging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: CI:test
66
jobs:
77

88
deploy-test:
9-
name: Deploy to flatastic.hatt.style
9+
name: Deploy to hatt.style
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v2

Deploy.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function getRemotePublicPath() {
3131
}
3232

3333
public function getRemotePublicUrl() {
34-
return "https://flatastic.hatt.style";
34+
return "https://hatt.style";
3535
}
3636

3737
public function getRemotePrivatePath() {
@@ -42,7 +42,7 @@ public function install($public_path) {
4242
$fs = new Symfony\Component\Filesystem\Filesystem();
4343
$fs->mirror(__DIR__.'/public', $public_path, null, ['delete' => true]);
4444
$index_path = "{$public_path}/index.php";
45-
$index_contents = file_get_contents($index_path);
45+
$index_contents = file_get_contents(__DIR__.'/public/index.php');
4646
$updated_index_contents = str_replace(
4747
"require_once dirname(__DIR__).'/vendor/autoload_runtime.php';",
4848
"require_once dirname(__DIR__).'/private/deploy/live/vendor/autoload_runtime.php';",

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# flatastic.hatt.style
2-
API to use flatastic app with home assistant
1+
# hatt.style
2+
3+
All my hobby projects

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "allestuetsmerweh/flatastic.hatt.style",
2+
"name": "allestuetsmerweh/hatt.style",
33
"type": "project",
44
"license": "MIT",
55
"authors": [

0 commit comments

Comments
 (0)