Skip to content

Commit

Permalink
Merge branch 'github-actions' into 'master'
Browse files Browse the repository at this point in the history
Build wire dashboard using github actions

See merge request public-resolume/wire-dashboard!2
  • Loading branch information
martijn-resolume committed May 7, 2024
2 parents 6f2aedb + ec67867 commit cea8feb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 45 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: npm build

on:
push

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Use nodejs
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
run: npm install
- name: Compile project
run: npm run build
env:
PUBLIC_URL: '/api/docs/dashboard'
- name: Upload compiled build
uses: actions/upload-artifact@v3
with:
name: wire-dashboard build
path: build
47 changes: 2 additions & 45 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,51 +1,8 @@
image: node:lts

cache:
paths:
- node_modules/

before_script:
- npm install
image: gitlab.resolume.com:4567/resolume/containers/github-actions/act:latest

build:
tags:
- docker
stage: build
script:
- npm run build
except:
- master
- tags

bundle:
variables:
PUBLIC_URL: "/api/docs/dashboard" # the path our built-in wire webserver will serve this as
tags:
- docker
stage: build
script:
- npm run build
artifacts:
paths:
- build
only:
- master
- tags

pages:
variables:
PUBLIC_URL: "/${CI_PROJECT_NAME}" # slash is important
tags:
- docker
stage: build
script:
- npm run build
- rm -rf publis
- mv build public
- cp public/index.html public/404.html
artifacts:
paths:
- public # this is what gitlab pages expects
only:
- master
- tags
- act

0 comments on commit cea8feb

Please sign in to comment.