mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 10:21:30 +03:00
a2f09480ee
* Use PR number directly in netlify github action Looks like we can get the PR number for the workflow run that triggered the workflow_run event, so there's no need for the massive faff we were doing here. * No need to create pr.json anymore
20 lines
680 B
YAML
20 lines
680 B
YAML
name: Layered Preview Build
|
|
on:
|
|
pull_request:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
PR_NUMBER: ${{github.event.number}}
|
|
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:
|
|
name: previewbuild
|
|
path: element-web/webapp
|
|
# We'll only use this in a triggered job, then we're done with it
|
|
retention-days: 1
|
|
|