From 56532a3359a555cc806cec7070d97f12c82405c2 Mon Sep 17 00:00:00 2001 From: roll Date: Tue, 22 Oct 2024 14:08:41 +0100 Subject: [PATCH] Updated Github Pages setup --- .github/workflows/website.yml | 68 +++++++++++++++++------------------ 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 7aba84e6..db38c4e9 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -2,47 +2,47 @@ name: Continuous Deployment on: push: branches: - - master + - v1 jobs: integration-tests: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Install Node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Configure - run: npm install - - name: Build - run: npm run build - - name: Build Schemas - run: npm run buildschemas - - name: Run tests - run: npm run test + - name: Checkout + uses: actions/checkout@v1 + - name: Install Node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Configure + run: npm install + - name: Build + run: npm run build + - name: Build Schemas + run: npm run buildschemas + - name: Run tests + run: npm run test deploy: if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: [integration-tests] steps: - - name: Checkout - uses: actions/checkout@v1 - - name: Install Node - uses: actions/setup-node@v1 - with: - node-version: 16 - - name: Configure - run: npm install - - name: Build - run: npm run build - - name: Build Schemas - run: npm run buildschemas - - name: Publush to Github Pages - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: .vuepress/dist - CLEAN: true + - name: Checkout + uses: actions/checkout@v1 + - name: Install Node + uses: actions/setup-node@v1 + with: + node-version: 16 + - name: Configure + run: npm install + - name: Build + run: npm run build + - name: Build Schemas + run: npm run buildschemas + - name: Publush to Github Pages + uses: JamesIves/github-pages-deploy-action@3.7.1 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BRANCH: v1-site + FOLDER: .vuepress/dist + CLEAN: true