Skip to content

Commit

Permalink
Add build workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
tfedor committed Mar 14, 2024
1 parent b118838 commit 2c2a14f
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Build Augmented Steam
on:
push:
branches: [develop, master]
jobs:
build-all:
strategy:
matrix:
browser: [firefox, chrome, edge]
uses: ./.github/workflows/build-browser.yml
with:
browser: ${{ matrix.browser }}
28 changes: 28 additions & 0 deletions .github/workflows/run-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Augmented Steam
on:
workflow_call:
inputs:
browser:
required: true
type: choice
options: [firefox, chrome, edge]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 21
- name: Install
run: npm install
- name: Build
run: npm run build -- ${{ inputs.browser }} --production
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.browser }}
path: dist/prod.${{ inputs.browser }}
if-no-files-found: error

0 comments on commit 2c2a14f

Please sign in to comment.