Skip to content

Change to dev script #6

Change to dev script

Change to dev script #6

Workflow file for this run

name: Deploy UI to GitHub Pages
on:
push:
branches:
- main # Adjust this to your default branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build Packages
run: yarn build:packages
- name: Build UI
run: yarn workspace hyperdrive-trading build:dev
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: apps/hyperdrive-trading/dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}