From f7a4fdccf2be6757fa7e9e6de0dde08053fc43b7 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Wed, 14 Oct 2020 02:05:02 +0530 Subject: [PATCH] :construction_worker: Add Static Site CI --- .github/workflows/release.yml | 26 -------------------------- .github/workflows/site.yml | 14 ++++---------- 2 files changed, 4 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 2bc16798..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Release CI -on: - push: - branches: - - master -jobs: - release: - name: Build, test, and release - runs-on: ubuntu-18.04 - if: "!contains(github.event.head_commit.message, '[skip ci]')" - steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 14 - - name: Install dependencies - run: npm ci - - name: Build TypeScript - run: npm run build - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release diff --git a/.github/workflows/site.yml b/.github/workflows/site.yml index cb250c74..65ded738 100644 --- a/.github/workflows/site.yml +++ b/.github/workflows/site.yml @@ -12,20 +12,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v1 - - name: Setup Node.js - uses: actions/setup-node@v1 + - name: Generate site + uses: upptime/uptime-monitor@master with: - node-version: 14 - - name: Install dependencies - run: cd site && npm ci - - name: Build site - run: cd site && npm run export - - name: Post process site - run: cd site && npm run post-process + command: "site" env: NODE_ENV: "production" - uses: maxheld83/ghpages@v0.2.1 name: GitHub Pages Deploy env: - BUILD_DIR: "site/__sapper__/export/" + BUILD_DIR: "site/status-page/__sapper__/export/" GH_PAT: ${{ secrets.GH_PAT }}