Skip to content

Commit 9baaa30

Browse files
authored
Merge pull request #19 from croque-scp/scp-head
[HEAD] New article
2 parents 16a172c + 4c0a49f commit 9baaa30

File tree

74 files changed

+1336
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1336
-3
lines changed

.github/workflows/preview.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,27 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
20-
- name: Install & build projects
19+
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Determine changed projects
24+
id: changes
25+
run: |
26+
CHANGED_PROJECTS=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }}...HEAD -- 'source/*' | cut -d/ -f2 | sort -u)
27+
echo "CHANGED_PROJECTS=$CHANGED_PROJECTS" >> $GITHUB_ENV
28+
29+
- name: Install & build changed projects
2130
run: |
2231
mkdir dist
23-
for project in $(cd source && ls -d */); do
32+
for project in $CHANGED_PROJECTS; do
2433
pushd source/$project
2534
npm install
2635
npm run build
2736
popd
2837
cp -r source/$project/dist dist/$project
2938
done
39+
3040
- name: Deploy preview
3141
uses: rossjrw/pr-preview-action@v1
3242
with:

source/scp-head/.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

source/scp-head/assets/README.md

Lines changed: 16 additions & 0 deletions
29.7 KB
710 KB
654 KB
1.99 MB
2.03 MB
896 KB
892 KB

0 commit comments

Comments
 (0)