forked from CosmoQuestX/CSB7.0
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (23 loc) · 751 Bytes
/
Copy pathci.yml
File metadata and controls
32 lines (23 loc) · 751 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
name: CI
on: [push]
env:
CI: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Lint PHP files
run: find . -name "*.php" -print0 | xargs -0 -n1 -P3 php --syntax-check
- name: Install SASS
run: sudo npm install -g sass
- name: Compile SASS
run: sass --style=compressed csb/csb-themes/default/sass/style.scss:csb/csb-themes/default/style.css
- name: Copy files to the build artifact folder
# Exclude the .git folder from the build artifact
run: rsync -av . /tmp/build --exclude .git
- name: Archive build artifacts
uses: actions/upload-artifact@v3
with:
name: csb-build
path: /tmp/build