Skip to content

Commit

Permalink
test real
Browse files Browse the repository at this point in the history
  • Loading branch information
thdxr committed Mar 7, 2024
1 parent 9247b52 commit 18f2a0d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ jobs:
role-session-name: GitHubActions
role-duration-seconds: 1200 # Optional: Specifies the duration, in seconds, of the role session (default is 1 hour)

- name: Use AWS CLI
- uses: actions/setup-go@v4
with:
go-version: '>=1.21.0'

- name: mod
run: go mod download

- name: deploy
run: |
aws s3 ls
cd www
go run ../cmd/sst deploy
8 changes: 7 additions & 1 deletion www/sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@ export default $config({
removalPolicy: input?.stage === "production" ? "retain" : "remove",
providers: {
aws: {
profile: input.stage === "production" ? "sst-production" : "sst-dev",
profile: (() => {
if (process.env.GITHUB_ACTIONS) return undefined;
if (input.stage === "production") {
return "sst-production";
}
return "sst-dev";
})(),
},
},
};
Expand Down

0 comments on commit 18f2a0d

Please sign in to comment.