Skip to content

Commit cc06d60

Browse files
Split the install folders and update github action
1 parent b086aa8 commit cc06d60

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

.github/workflows/publish-install-script.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'install/*.sh'
8+
- 'install/bash/*.sh'
9+
- 'install/powershell/*.ps1'
910
workflow_dispatch:
1011

1112
jobs:
@@ -23,17 +24,33 @@ jobs:
2324
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
2425
R2_BUCKET: ${{ secrets.R2_BUCKET }}
2526
run: |
26-
aws s3 cp install/install.sh s3://${R2_BUCKET}/install/install.sh \
27+
aws s3 cp install/bash/install.sh s3://${R2_BUCKET}/install/install.sh \
2728
--endpoint-url "${R2_ENDPOINT}" \
2829
--content-type "text/plain"
2930
echo "✓ install.sh uploaded to R2"
3031
31-
aws s3 cp install/walkthrough.sh s3://${R2_BUCKET}/install/walkthrough.sh \
32+
aws s3 cp install/bash/walkthrough.sh s3://${R2_BUCKET}/install/walkthrough.sh \
3233
--endpoint-url "${R2_ENDPOINT}" \
3334
--content-type "text/plain"
3435
echo "✓ walkthrough.sh uploaded to R2"
3536
36-
aws s3 cp install/examples.sh s3://${R2_BUCKET}/install/examples.sh \
37+
aws s3 cp install/bash/examples.sh s3://${R2_BUCKET}/install/examples.sh \
3738
--endpoint-url "${R2_ENDPOINT}" \
3839
--content-type "text/plain"
3940
echo "✓ examples.sh uploaded to R2"
41+
42+
aws s3 cp install/powershell/install.ps1 s3://${R2_BUCKET}/install/install.ps1 \
43+
--endpoint-url "${R2_ENDPOINT}" \
44+
--content-type "text/plain"
45+
echo "✓ install.ps1 uploaded to R2"
46+
47+
aws s3 cp install/powershell/walkthrough.ps1 s3://${R2_BUCKET}/install/walkthrough.ps1 \
48+
--endpoint-url "${R2_ENDPOINT}" \
49+
--content-type "text/plain"
50+
echo "✓ walkthrough.ps1 uploaded to R2"
51+
52+
aws s3 cp install/powershell/examples.ps1 s3://${R2_BUCKET}/install/examples.ps1 \
53+
--endpoint-url "${R2_ENDPOINT}" \
54+
--content-type "text/plain"
55+
echo "✓ examples.ps1 uploaded to R2"
56+

0 commit comments

Comments
 (0)