Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Jul 19, 2024
1 parent 4e9c7f0 commit 8bd9f7e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node.js CI

permissions:
contents: write

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest
env:
working-directory: ./src/Frontend

steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
#cache: 'npm'
- name: Clean slate
run: npm ci
working-directory: ${{env.working-directory}}
- name: Install quasar
run: npm install -g @quasar/cli
working-directory: ${{env.working-directory}}
- name: Build
run: quasar build
working-directory: ${{env.working-directory}}
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: src/dist/spa/ # The folder the action should deploy.

0 comments on commit 8bd9f7e

Please sign in to comment.