Add github action to deploy

This commit is contained in:
2021-11-23 23:46:01 -06:00
parent 76a180f627
commit facd5f90c8
5 changed files with 59 additions and 12594 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Buid and Deploy
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2.1.2
with:
node-version: '12.x'
- run: npm install
- run: npm run build
- name: FTP Deploy
uses: SamKirkland/FTP-Deploy-Action@4.0.0
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
port: 21
protocol: ftps
security: strict
state-name: ../.ftp-deploy-sync-state.json
local-dir: ./dist/itsfiveoclockwhere/
+26 -12579
View File
File diff suppressed because it is too large Load Diff
+1 -13
View File
@@ -15,17 +15,5 @@ describe('AppComponent', () => {
const app = fixture.componentInstance;
expect(app).toBeTruthy();
});
it(`should have as title 'itsfiveoclockwhere'`, () => {
const fixture = TestBed.createComponent(AppComponent);
const app = fixture.componentInstance;
expect(app.title).toEqual('itsfiveoclockwhere');
});
it('should render title', () => {
const fixture = TestBed.createComponent(AppComponent);
fixture.detectChanges();
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('.content span')?.textContent).toContain('itsfiveoclockwhere app is running!');
});
});
-1
View File
@@ -12,7 +12,6 @@ import { TimezoneService } from './services/timezone.service';
styleUrls: ['./app.component.scss']
})
export class AppComponent {
title = 'itsfiveoclockwhere';
dates: any[] = []
+1 -1
View File
@@ -407,7 +407,7 @@ export class TimezoneService {
'Pacific/Guadalcanal',
'Pacific/Guam',
'Pacific/Honolulu',
// 'Pacific/Kanton', ?? Why is this not valid?
'Pacific/Kanton', // Why is this not valid?
'Pacific/Kiritimati',
'Pacific/Kosrae',
'Pacific/Kwajalein',