2021-08-06 22:54:19 +00:00
|
|
|
name: Layered Preview Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [develop]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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 18:16:08 +00:00
|
|
|
name: previewbuild
|
2021-08-06 22:54:19 +00:00
|
|
|
path: element-web/webapp
|
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|
2021-08-11 18:25:17 +00:00
|
|
|
- uses: actions/github-script@v3.1.0
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
var fs = require('fs');
|
|
|
|
fs.writeFileSync('${{github.workspace}}/context.json', JSON.stringify(context));
|
|
|
|
- name: Upload Context
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: context.json
|
|
|
|
path: context.json
|
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|
2021-08-06 22:54:19 +00:00
|
|
|
|