2022-03-11 14:00:56 +01:00
|
|
|
# Produce a 'layered build' (a build of element-web with this version of
|
|
|
|
# react-sdk) and output it as an artifact
|
2021-08-07 00:54:19 +02:00
|
|
|
name: Layered Preview Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-09-18 13:52:56 +02:00
|
|
|
env:
|
2022-03-11 14:00:56 +01:00
|
|
|
# This must be set for fetchdep.sh to get the right branch
|
2021-09-18 13:52:56 +02:00
|
|
|
PR_NUMBER: ${{github.event.number}}
|
2021-08-07 00:54:19 +02:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build
|
|
|
|
run: scripts/ci/layered.sh && cd element-web && cp element.io/develop/config.json config.json && CI_PACKAGE=true yarn build
|
|
|
|
- name: Upload Artifact
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-08-09 20:16:08 +02:00
|
|
|
name: previewbuild
|
2021-08-07 00:54:19 +02:00
|
|
|
path: element-web/webapp
|
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|
|
|
|
|