2021-08-07 01:54:19 +03:00
|
|
|
name: Layered Preview Build
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-09-18 14:52:56 +03:00
|
|
|
env:
|
|
|
|
PR_NUMBER: ${{github.event.number}}
|
2021-08-07 01:54:19 +03: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 21:16:08 +03:00
|
|
|
name: previewbuild
|
2021-08-07 01:54:19 +03: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 21:25:17 +03:00
|
|
|
- uses: actions/github-script@v3.1.0
|
|
|
|
with:
|
|
|
|
script: |
|
|
|
|
var fs = require('fs');
|
2021-08-11 23:20:28 +03:00
|
|
|
fs.writeFileSync('${{github.workspace}}/pr.json', JSON.stringify(context.payload.pull_request));
|
|
|
|
- name: Upload PR Info
|
2021-08-11 21:25:17 +03:00
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
2021-08-11 23:20:28 +03:00
|
|
|
name: pr.json
|
|
|
|
path: pr.json
|
2021-08-11 21:25:17 +03:00
|
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
|
|
retention-days: 1
|
2021-08-07 01:54:19 +03:00
|
|
|
|