Skip to content

Merge pull request #5 from fabric-testbed/staging #23

Merge pull request #5 from fabric-testbed/staging

Merge pull request #5 from fabric-testbed/staging #23

Workflow file for this run

name: Build and Deploy
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run build
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/develop'
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
token: ${{ secrets.GITHUB_TOKEN }}
clean: true