-
-
Notifications
You must be signed in to change notification settings - Fork 84
43 lines (37 loc) · 914 Bytes
/
deploy-preset-env.yml
File metadata and controls
43 lines (37 loc) · 914 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Deploy PostCSS Preset Env
on:
workflow_dispatch:
push:
branches:
- 'main'
paths:
- 'sites/package-lock.json'
- 'sites/postcss-preset-env/**'
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
build:
name: Request Netlify Webhook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
fetch-depth: 1
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: 24
- name: npm ci
run: |
cd sites/postcss-preset-env
npm ci --ignore-scripts
- name: build
run: |
cd sites/postcss-preset-env
npm run build
- name: trigger deploy
env:
DEPLOY_HOOK: ${{ secrets.PRESET_ENV_DEPLOY_HOOK }}
run: curl -X POST -d {} $DEPLOY_HOOK