From 6e73ea28ea67021171dc588752d7c95047eebaa6 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Thu, 3 Aug 2023 17:34:28 -0400 Subject: [PATCH] github pages --- .github/workflows/main.yml | 32 ++++++++++++++++++++++++++++++++ proxy.config.local.json | 4 ++-- src/environments/environment.ts | 2 +- 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..7fba63c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: GitHub Pages + +on: + push: + branches: + - master + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '16' + + - name: Install dependencies + run: npm ci --force + + - name: Build + run: npm run build + + - name: Deploy + if: success() + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: dist/public-pool-ui + enable_jekyll: true \ No newline at end of file diff --git a/proxy.config.local.json b/proxy.config.local.json index d506cf3..6ae1a25 100644 --- a/proxy.config.local.json +++ b/proxy.config.local.json @@ -1,7 +1,7 @@ { "/api": { - "target": "http://localhost:3334", - "secure": false, + "target": "https://localhost:3334", + "secure": true, "changeOrigin": false, "logLevel": "debug" } diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 073d833..d78e6e9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -1,4 +1,4 @@ export const environment = { production: false, - API_URL: '/api' + API_URL: 'https://localhost:3334' };