-
-
Notifications
You must be signed in to change notification settings - Fork 111
28 lines (26 loc) · 750 Bytes
/
deploy-preview.yml
File metadata and controls
28 lines (26 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Deploy preview
on:
pull_request_target: null
jobs:
deploy:
runs-on: ubuntu-24.04
continue-on-error: true
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Use node.js
uses: actions/setup-node@v6
with:
node-version: 24.14
- name: Build
run: |
npm ci && \
node ./scripts/set-homepage.cjs /shlink-web-client/${GITHUB_HEAD_REF#refs/heads/} && \
node --run build
- name: Deploy preview
uses: shlinkio/deploy-preview-action@v1.0.1
with:
folder: build