Skip to content

Commit

Permalink
Introduce CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Feb 15, 2024
1 parent adc81de commit b4e08a1
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/actions/install/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Install Tools & Dependencies
description: Installs pnpm, Node.js & package dependencies

runs:
using: composite
steps:
- name: Setup PNPM
uses: pnpm/[email protected]
with:
run_install: false
standalone: true
package_json_file: web/package.json
version: 8

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
cache-dependency-path: 'app'

- name: Install dependencies
run: pnpm install
shell: bash
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@


name: 🚚 Deploy

on:
push:
branches:
- master

env:
NODE_OPTIONS: "--max_old_space_size=8192"

jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Tools & Dependencies
uses: ./.github/actions/install

- name: Build
working-directory: ./web
run: pnpm run build

- name: Edgeserver Upload
uses: lvkdotsh/[email protected]
with:
app_id: "207908995488658940"
server: https://api.edgeserver.io
token: ${{ secrets.SIGNAL_TOKEN }}
directory: web/dist
3 changes: 2 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
"start": "vite"
"start": "vite",
"build": "vite build"
},
"keywords": [],
"author": "V3X Labs BV.",
Expand Down

0 comments on commit b4e08a1

Please sign in to comment.