From ee5b32e6ac479b209528499ea5a349daca1c78e2 Mon Sep 17 00:00:00 2001
From: Griefed <griefed@griefed.de>
Date: Sat, 18 Sep 2021 13:17:09 +0200
Subject: [PATCH] build: Update and deploy to GitHub Pages on push to master or
 workflow dispatch

---
 .github/workflows/gh-pages.yml | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 .github/workflows/gh-pages.yml

diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
new file mode 100644
index 0000000..dde0925
--- /dev/null
+++ b/.github/workflows/gh-pages.yml
@@ -0,0 +1,31 @@
+name: Deploy to GitHub pages
+
+on:
+  push:
+    branches:
+      - master
+  workflow_dispatch:
+
+jobs:
+  pages:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: Setup Node.js environment
+        uses: actions/setup-node@v2.4.0
+        with:
+          # Version Spec of the version to use.  Examples: 12.x, 10.15.1, >=10.15.0
+          node-version: '>= 16.9.1'
+          # Set this option if you want the action to check for the latest available version that satisfies the version spec
+          check-latest: false
+      - run: npm install -g @quasar/cli
+      - run: npm install
+      - run: quasar build
+      - run: pwd && ls -al *
+
+      # DEPLOY TO GH-PAGES
+      - name: Deploy to GitHub-Pages
+        uses: JamesIves/github-pages-deploy-action@4.1.5
+        with:
+          branch: gh-pages
+          folder: dist/spa
-- 
GitLab