Skip to content

Commit

Permalink
Merge pull request #18 from pipecat-ai/mb/github
Browse files Browse the repository at this point in the history
Move Workflows to top level
  • Loading branch information
markbackman authored Nov 21, 2024
2 parents 3493ccd + 5fb0379 commit fdc26e3
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: editor/package-lock.json

- name: Install dependencies
working-directory: ./editor
run: npm ci

- name: Build
working-directory: ./editor
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit fdc26e3

Please sign in to comment.