Skip to content

Commit ed44171

Browse files
revert to using SBT to upload to riffraff
A bug in Node 16 means that `@guardian/actions-riff-raff` can fail to upload assets to S3. See aws/aws-sdk-js-v3#2843 for more information
1 parent 192d6dd commit ed44171

File tree

1 file changed

+9
-38
lines changed

1 file changed

+9
-38
lines changed

.github/workflows/build.yml

+9-38
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,19 @@ jobs:
4242
env:
4343
NODE_ENV: production
4444

45-
# temporary, to validate the build artifacts come from this action
46-
- run: touch static/hash/canary.txt
47-
4845
- uses: aws-actions/configure-aws-credentials@v2
4946
with:
5047
aws-region: eu-west-1
5148
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
5249

50+
- uses: guardian/actions-riff-raff@v2
51+
with:
52+
projectName: dotcom:frontend
53+
configPath: riff-raff.yaml
54+
contentDirectories: |
55+
frontend-static:
56+
- static/hash
57+
5358
- run: |
5459
java \
5560
-Xmx6144M \
@@ -58,40 +63,6 @@ jobs:
5863
-XX:+UseParallelGC \
5964
-DAPP_SECRET="fake_secret" \
6065
-Duser.timezone=Australia/Sydney \
61-
-jar ./bin/sbt-launch.jar clean compile assets scalafmtCheckAll test Universal/packageBin
66+
-jar ./bin/sbt-launch.jar clean compile assets scalafmtCheckAll test riffRaffUpload
6267
env:
6368
STAGE: DEVINFRA
64-
65-
- uses: guardian/actions-riff-raff@v2
66-
with:
67-
projectName: dotcom:frontend
68-
configPath: riff-raff.yaml
69-
contentDirectories: |
70-
frontend-static:
71-
- static/hash
72-
admin:
73-
- admin/target/universal/admin.zip
74-
applications:
75-
- applications/target/universal/applications.zip
76-
archive:
77-
- archive/target/universal/archive.zip
78-
article:
79-
- article/target/universal/article.zip
80-
commercial:
81-
- commercial/target/universal/commercial.zip
82-
discussion:
83-
- discussion/target/universal/discussion.zip
84-
facia:
85-
- facia/target/universal/facia.zip
86-
facia-press:
87-
- facia-press/target/universal/facia-press.zip
88-
identity:
89-
- identity/target/universal/identity.zip
90-
onward:
91-
- onward/target/universal/onward.zip
92-
preview:
93-
- preview/target/universal/preview.zip
94-
rss:
95-
- rss/target/universal/rss.zip
96-
sport:
97-
- sport/target/universal/sport.zip

0 commit comments

Comments
 (0)