Skip to content

Commit b3de1bb

Browse files
committed
[workflow] Reuse web action in publish-web
Deduplicate web build steps
1 parent 5ffc37f commit b3de1bb

2 files changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/publish-web.yml

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,8 @@ jobs:
1414
with:
1515
submodules: true
1616

17-
- name: Setup WASM SDKs
18-
run: |
19-
scripts/install_wasm_tools.sh
20-
. scripts/activate_wasm_tools.sh
21-
22-
# Use the node version pinned by emsdk, and save an separate node
23-
# installation step.
24-
echo "$(dirname "$EMSDK_NODE")" >>$GITHUB_PATH
25-
shell: bash
26-
27-
- uses: pnpm/action-setup@v4
28-
with:
29-
version: 10
30-
31-
- name: Install PNPM dependencies
32-
run: |
33-
cd web
34-
pnpm install
35-
shell: bash
36-
37-
- name: Configure AWS OIDC
38-
uses: aws-actions/configure-aws-credentials@v4
39-
with:
40-
role-to-assume: arn:aws:iam::466456532355:role/github-coursepointer.app-s3-upload
41-
aws-region: us-east-1
42-
role-session-name: github-${{ github.run_id }}
17+
- name: Build website
18+
uses: .github/actions/web
4319

4420
- name: Publish to S3
4521
run: |

scripts/publish_web.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ DISTRIBUTION="E15WM16D97A4F9"
1212

1313
cd "$(dirname "$0")/../web"
1414

15-
pnpm build
15+
# pnpm build
1616

1717
aws s3 sync ./dist/ $BUCKET \
1818
--exclude "assets/*" \

0 commit comments

Comments
 (0)