Skip to content

Commit d1c792b

Browse files
committed
revamp the preview workflow
1 parent 97a28a7 commit d1c792b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/preview.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Deploy Preview
17-
uses: LocalStack/setup-localstack@v0.2.2
17+
uses: LocalStack/setup-localstack@v0.2.4
1818
env:
19-
LOCALSTACK_API_KEY: ${{ secrets.LOCALSTACK_API_KEY }}
19+
LOCALSTACK_AUTH_TOKEN: ${{ secrets.LOCALSTACK_AUTH_TOKEN }}
2020
with:
2121
github-token: ${{ secrets.GITHUB_TOKEN }}
2222
state-backend: ephemeral
@@ -27,13 +27,8 @@ jobs:
2727
# For more predictable usage, use script files
2828
preview-cmd: |
2929
npm install -g aws-cdk-local aws-cdk;
30-
make build;
31-
make bootstrap;
30+
make install;
3231
make deploy;
33-
make prepare-frontend-local;
34-
make build-frontend;
35-
make bootstrap-frontend;
36-
make deploy-frontend;
32+
make frontend;
3733
distributionId=$(awslocal cloudfront list-distributions | jq -r '.DistributionList.Items[0].Id');
3834
echo LS_PREVIEW_URL=$AWS_ENDPOINT_URL/cloudfront/$distributionId/ >> $GITHUB_ENV;
39-

0 commit comments

Comments
 (0)