Skip to content

Fix: Build workflow directory #5

Fix: Build workflow directory

Fix: Build workflow directory #5

Workflow file for this run

name: Build using vite and deploy to GitHub Pages when on main

Check failure on line 1 in .github/workflows/pages.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pages.yaml

Invalid workflow file

(Line: 19, Col: 15): Unexpected value 'uses', (Line: 20, Col: 15): Unexpected value 'with', (Line: 17, Col: 15): Required property is missing: run
on:
- push
# Configures premissions for the used GitHub Token that are required for Pages.
permissions:
contents: read # To get the source
pages: write # To deploy to pages
id-token: write # To verify deployment (done automatically by the official action)
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Use Node.js 20.x
working-directory: Frontend/WebEditor
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: npm
- name: Install dependencies
working-directory: Frontend/WebEditor
run: npm install
- name: Build project
working-directory: Frontend/WebEditor
run: npm run build
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: Frontend/WebEditor/dist
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
uses: actions/deploy-pages@v4