Skip to content

Commit

Permalink
Updated Github Pages setup
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Oct 22, 2024
1 parent 2a94321 commit 56532a3
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: v1-site
FOLDER: .vuepress/dist
CLEAN: true

0 comments on commit 56532a3

Please sign in to comment.