Pages & popups refactoring #382
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Start Preview Deployment | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
- 'scripts/**' | |
- '.vscode/**' | |
- '.husky/**' | |
- '.github/**' | |
- 'core/test/**' | |
- 'proxy/test/**' | |
- 'server/test/**' | |
- 'loader-tests/**' | |
- '.devcontainer/**' | |
- 'extension/**' | |
permissions: | |
contents: read | |
jobs: | |
prepare: | |
name: Prepare | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/[email protected] | |
- name: Initialize Node.js | |
uses: ./.github/actions/init-node | |
- name: Build assets | |
run: cd web && node --run build | |
env: | |
STAGING: 1 | |
- name: Build server | |
run: cd server && node --run build | |
- name: Save PR number | |
run: echo "${{ github.event.pull_request.number }}" > ./preview-id | |
- name: Create archive to keep symlinks | |
run: tar -cf server.tar server/dist/ | |
- name: Save server for deploy | |
uses: actions/[email protected] | |
with: | |
name: preview-server | |
retention-days: 1 | |
include-hidden-files: true | |
path: | | |
server/web/ | |
server/Dockerfile | |
server/.dockerignore | |
preview-id | |
server.tar |