Change to dev script #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |