Skip to content

Commit

Permalink
feat: deploying to netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
ValeryG committed Nov 21, 2024
1 parent 0403842 commit d14cd2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 19 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/github-pages.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Deploy Spec Editor to GitHub Pages
name: Build spec-editor

on:
push:
pull_request:
branches:
- main

Expand All @@ -17,12 +17,13 @@ permissions:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}


jobs:
# Single deploy job since we're just deploying
deploy:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -43,16 +44,3 @@ jobs:

- name: Build Spec Editor
run: pnpm build

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload sandbox/dist directory
path: './dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const externalDependencies: string[] = ['shiki/onig.wasm']

// https://vite.dev/config/
export default defineConfig({
base: '/spec-editor',
base: '/',
plugins: [
vue(),
vueDevTools(),
Expand Down

0 comments on commit d14cd2b

Please sign in to comment.