Skip to content

Commit

Permalink
Publish release artifacts to S3.
Browse files Browse the repository at this point in the history
This uses GitHub Action's federated OIDC support, so it does not require
any explicit credentials.

The role ARN is stored in a GitHub secret to avoid leaking our account
ID, but it's not sensitive data otherwise.

Signed-off-by: Aaron Jacobs <[email protected]>
  • Loading branch information
atheriel committed Apr 5, 2022
1 parent 41d9c98 commit 3cd9b22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ jobs:
uses: sigstore/cosign-installer@main
with:
cosign-release: 'v1.6.0'
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
role-session-name: gha-rskey
aws-region: us-east-1
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
Expand Down
4 changes: 4 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ archives:
format_overrides:
- goos: windows
format: zip
blobs:
- provider: s3
bucket: rstudio-platform-public-artifacts
folder: "rskey/{{ .Version }}"
release:
draft: true
header: |
Expand Down

0 comments on commit 3cd9b22

Please sign in to comment.