-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (34 loc) · 960 Bytes
/
build-css.yml
File metadata and controls
36 lines (34 loc) · 960 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
name: Build And Deploy CSS
on:
workflow_call:
jobs:
build-css:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get node_modules From Cache
id: get-modules
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/node_modules
key: node-modules
restore-keys: node-modules-
- name: Setup Node.js Environment
uses: actions/setup-node@v4
with:
node-version: '16'
- name: Load Dependency
run: npm ci
- name: Build CSS
run: npm run build
- name: Generate changelogs
run: npm run changelog; mv CHANGELOG.md css/
# https://github.com/JamesIves/github-pages-deploy-action
- name: Deploy to release branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: release
folder: css
clean: true